Page 1 of 1

"cannot be left blank" not showing

PostPosted: Sat Jan 05, 2019 7:22 pm
by Timo
If mandatory fields are not entered, a message is displayed when saving. It looks like this for me.

missing.JPG
missing.JPG (11.03 KiB) Viewed 374 times


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
debug.PNG (9.48 KiB) Viewed 374 times



Using the latest form Github, btw.

Can anyone confirm that?

Re: "cannot be left blank" not showing

PostPosted: Wed Jan 09, 2019 2:53 pm
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

PostPosted: Thu Jan 10, 2019 11:13 am
by admin
People,

This should now work.

The fix is on Github.


Steven

Re: "cannot be left blank" not showing

PostPosted: Fri Jan 11, 2019 2:22 pm
by Martin
admin wrote:People,

This should now work.

The fix is on Github.


Steven



Great! But where can I find the fix?