Page 1 of 1

nuUpdateTableSchema() - saving issue

Posted: Mon Aug 20, 2018 12:04 pm
by toms
Hi,

A recent change to nuUpdateTableSchema() causes a problem with forms that contain a subform and execute nuRunPHPHidden().

Upon opening my Edit Screen, a PHP function is executed.

Code: Select all

if (nuFormType() == 'edit') {

   nuRunPHPHidden(...);

}
When a user enters data and saves the record, an error message is shown
"tablXYZ is not a valid table name for a Subform"
Then, when the record is saved a second time, the record is saved (without error message)

I found out that the problem is caused by nuSetJSONData() in nuUpdateTableSchema().

Quick fix: I commented out the code (see screenshot) and all works fine again.
nuUpdateTableSchema.png

Re: nuUpdateTableSchema() - saving issue

Posted: Tue Aug 21, 2018 6:15 am
by toms
Thanks, the fix works for me.

Re: nuUpdateTableSchema() - saving issue

Posted: Thu Aug 23, 2018 5:53 am
by admin
.