Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

[Changed] PHP nuRunPHPHidden(), 2nd parameter

Information about updates, news, Code Library
Post Reply
admin
Site Admin
Posts: 2791
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 4 times

[Changed] PHP nuRunPHPHidden(), 2nd parameter

Unread post by admin »

The functionality of nuRunPHPHidden() has been updated.
Now, only if a second parameter set to true is provided, it will call any nuBeforeSave() function if defined.
Previously, any second parameter would automatically trigger the call of this function.

Before:

Code: Select all

nuRunPHPHidden('procedure_code');
nuBeforeSave() is called.

Code: Select all

nuRunPHPHidden('procedure_code', 1);
nuBeforeSave() is not called.


Now:

Code: Select all

nuRunPHPHidden('procedure_code');
nuBeforeSave() is not called.

Code: Select all

nuRunPHPHidden('procedure_code', true);
nuBeforeSave() is called.

Changed as of Files Version: V.4.5-2024.03.20.13
admin
Site Admin
Posts: 2791
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 4 times

Re: [Changed] PHP nuRunPHPHidden(), 2nd parameter

Unread post by admin »

nuRunPHP() has also been updated: Only if a third parameter is provided that is set to true, the nuBeforeSave() function is called if it is defined.
Post Reply