Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • thesdhotel Friend
    #1064187

    Hello, I noticed that for some reason Megafilter publishes values related to field types text/editor/textarea/url, with an extra blank space at the end of the value.

    I’m not sure why you did this, but this causes problems if you want to use their raw value with no extra space. There is really no reason to have this extra space.

    The fix is simple. In plugins/jamegafilter/content/helper.php:

    Find:

    $this->attr['ct'.$field->id]['value'] .= $field->value . ' ';
    $this->attr['ct'.$field->id]['frontend_value'] = $field->value . ' ';

    Replace with:

    $this->attr['ct'.$field->id]['value'] .= $field->value;
    $this->attr['ct'.$field->id]['frontend_value'] = $field->value;

    As you can see is as simple as removing this: .’ ‘

    Can you please fix this officially in the next version?

    Thanks!

    • This topic was modified 7 years, 1 month ago by  thesdhotel.
    Mr.Cat Moderator
    #1064296

    @thesdhotel

    Thanks. It’s already added to the next version 😉

    Wisdom is not a product of schooling but of the lifelong attempt to acquire it.

    thesdhotel Friend
    #1064402

    Great!
    I found out that this fix, also fixes this other problem: https://www.joomlart.com/forums/topic/bug-sorting-of-number-values-doesnt-work-correctly/

    So it’s important that it’s been fixed 🙂

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

This topic contains 2 replies, has 2 voices, and was last updated by  thesdhotel 7 years, 1 month ago.

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