Page 1 of 1

"cannot be left blank" not showing

Posted: Sat Jan 05, 2019 10:52 am
by Timo
If mandatory fields are not entered, a message is displayed when saving. It looks like this for me.
missing.JPG
Note that there is no "cannot be left blank" text in the message. I found out this is due to the nuTranslate PHP function that was added a few months ago.

nuTranslate always returns an empty string.

Test:

$l = nuTranslate('Time Zone');
nuDebug("translate:".$l);
debug.PNG

Using the latest form Github, btw.

Can anyone confirm that?

Re: "cannot be left blank" not showing

Posted: Wed Jan 09, 2019 6:23 am
by Martin
Yes, I can confirm that, it has been bothering me for a long time, but I haven't reported it yet.
Strangely enough, the message is displayed correctly when nuBuilder is used as Wordpress Plugin, but not as a standalone app.

Re: "cannot be left blank" not showing

Posted: Thu Jan 10, 2019 2:43 am
by admin
People,

This should now work.

The fix is on Github.


Steven

Re: "cannot be left blank" not showing

Posted: Fri Jan 11, 2019 5:52 am
by Martin
admin wrote:People,

This should now work.

The fix is on Github.


Steven

Great! But where can I find the fix?