Backend List filters pane: "Search all label" default value must be empty

administrator/components/com_fabrik/models/forms/list.xml
Now the default is "All" and is overwriting if field is left empty saving list record and we have no correct translations of "Search" in FE search box.
</field>
/* patch 2016-02-11 Default must be EMPTY!!!*/
<field name="search-all-label"
type="text"
default=""
class="input-medium"
size="20"
label="COM_FABRIK_FIELD_SEARCH_ALL_LABEL_LABEL"
description="COM_FABRIK_FIELD_SEARCH_ALL_LABEL_DESC"
/>
 
When editing a list, the default value from the XML file is always set to "All" if it is "empty" or not set. I want it always to be empty. In that case the translation of COM_FABRIK_SEARCH kicks in as default value when processing list in front end. ( at /components/com_fabrik/models/list.php:6171:)
One possible solution is to add translation processing to the data given in the search all label field and set a default value that is processes through JText.
 

Attachments

  • Screenshot from 2016-02-12 12:08:25.png
    Screenshot from 2016-02-12 12:08:25.png
    52.7 KB · Views: 103
OK, I understand now.

BTW, do you use github? By far the most effective way to get me to merge changes like this is to submit a PR via github, so I can just click a button and it's done. :)

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top