Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • thesdhotel Friend
    #1063964

    Hello, I noticed that with the latest version of JA Megafilter (testing it for Joomla Content Custom Fields), filtering an Integer Field by using the "Range" filter type, no longer works correctly.

    To test this, simply create an Integer field, create a few articles by assigning to them different values and then try to use Megafilter to filter for this field by using the "Range" filter type.

    It will not work as expected and will return unexpected results.

    On the contrary, if you use the other Filter Types (Single/Dropdown/Multiple) for Integer values, then the filtering works correctly. So the problem is with the "Range" filter type.

    • This topic was modified 6 years, 7 months ago by  thesdhotel.
    Mo0nlight Moderator
    #1064118

    Hi.

    Edit the file:
    components/com_jamegafilter/assets/js/megafilter.js

    Look for.

    if (fgroup.is('LNFilterRange')) {
                        fgroup.value = $value.val();

    Add this under.

                        fgroup.value[0] = parseInt(fgroup.value[0]); // to Int
                        fgroup.value[1] = parseInt(fgroup.value[1]); // to Int
    thesdhotel Friend
    #1064149

    Nice, will this be officially fixed in the next version?

    Luna Garden Moderator
    #1064152

    Yeah, it will be added.

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 3 replies, has 3 voices, and was last updated by  Luna Garden 6 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum