DB Version: V.4.5-2022.01.30.00
Files Version: V.4.5-2022.02.22.02
I built a new system using the above version.
I built it by installing LAMP, MariaDB and the above version of nuBuilder.
Then I imported the database from a backup.
The new system all seemed to be working - okay so far.
While logged into that system, I did Database -> Update and followed the update wizard instructions:-
1. Made backups of database and of nuBuilder files.
2 & 3. Deleted /var/www/html (after coping nuConfig.php) then downloaded and unpacked the latest version into "html", preserving nuconfig.php
4. Clicked the Update button and saw the expected: "You will need to log in again for the changes to take effect".
The "latest version" referred to above is:-
DB Version: V.4.5-2022.08.31.00
Files Version: V.4.5-2022.09.15.00
After logging in again, there is an issue after the update that did not exist before the update:-
I have a form that has several select objects.
One of them has ID select_system_model.
The form has JS code that runs on form load, that does the following:
Code: Select all
$("#select_system_model").empty();
nuRefreshSelectObject('select_system_model');
console.log("select_system_model: cause pick list refresh due to form refresh");
The form also has JS code with the following callback function that starts with the code:-
Code: Select all
function nuSelectObjectRefreshed(formId, selectId, count) {
var f = nuCurrentProperties();
let message = selectId + ' has been refreshed; number of items: ' + count;
console.log(message);
...
select_system_model has been refreshed; number of items: 1077
but the console log message "after update" case looks like this (not as expected):-
#nurefreshselectobject_selectid# has been refreshed; number of items: -1
In addition, when I go to Form Properties -> Custom Code -> make a minor (whitespace only) change, in the code -> Save
I get the following (I was not cloning any form BTW) :-
After Save of Form nuform
/var/www/html/core/nucommon.php(1392) : eval()'d code
Call to undefined function nuCloneForm()
Traced from...
(line:101) /var/www/html/core/nuapi.php - nuUpdateDatabase
(line:467) /var/www/html/core/nudata.php - nuEval
(line:1392) /var/www/html/core/nucommon.php - eval
Due to both the issue with the select object and the above error, I am concerned that the newly-built system is not in a good state.
I could of course start with a virgin system, import my data tables and then build the whole UI from scratch, but that would be a lot of effort and would like to avoid that, if possible.
I also had a look at the release versions of 4.5, but I did not see anything mentioning a change relating to this. I also checked the JS documentation for nuRefreshSelectObject() and I think I am using it exactly as it says.
Any help would be appreciated! Thanks!