Add an app.conf setting so that a user can define what is set when a record is saved with no preferred label. This will allow users to override the default [BLANK] value with custom text.
Implemented in GitHub/develop
I gave this a try and it's setting the title correctly but I'm also getting this message:
Warning: Illegal offset type in isset or empty in /data/metabolic2/admin/app/helpers/utilityHelpers.php on line 70
Warning: Illegal offset type in /data/metabolic2/admin/app/helpers/utilityHelpers.php on line 91
You had it set in app.conf to [No title], which is actually the syntax for a list with one item "No title" ... except it wants text and not a list so we get errors. I have code in place to catch this now.
Also, we add bracket around whatever text you specify automatically so the ones in app.conf are not needed. My revision allows you to include them or not, and doesn't issue repeated brackets. In other words, whether you have in app.conf "No title" or "[No title]" when saving a record without a label the label is always set to "[No title]"
Got it. Looks good.
This is a great tweak from a UI point of view. Since you are revisiting these special-meaning labels, could you clarify the interaction with locales and indexing/retrieval of BLANK/SET? There is the locale of the user when entering the data, the language specified for the label being input, the locale of the user searching/accessing the record, all potentially different. In multilingual environments these issues get... confusing. Thanks.