Page 1 of 1

Auto-resizing of the columns no longer works

Posted: Tue Apr 04, 2023 8:53 pm
by gerese
Hi, I updated my app with the latest version of nuBuilder.
At the first login I received the error:
update error.jpg

Later error it did not appear again.
In nuDebug I found the error:

Code: Select all

[0] : ===PDO MESSAGE===
SQLSTATE[21S01]: Insert value list does not match column list: 1136 Column count doesn't match value count at row 1
===SQL===========
REPLACE INTO zzzzsys_cloner SELECT * FROM sys_zzzzsys_cloner
===BACK TRACE====
C:\wamp64\www\sisf\core\nusystemupdatelibs.php - line 383 (nuRunQuery)
C:\wamp64\www\sisf\core\nusystemupdate.php - line 103 (nuAppendToSystemTables)
C:\wamp64\www\sisf\core\nusystemupdate.php - line 23 (nuRunUpdate)
In the browsing forms, the auto-resizing of the columns no longer works.

I have updated from version
DB Version: V.4.5-2022.10.28.00
Files Version: V.4.5-2022.10.29.04

... to the latest github version.

I use: PHP 7.4.9

Thank you.

Re: Auto-resizing of the columns no longer works

Posted: Wed Apr 05, 2023 5:42 am
by kev1n
Hi,

Thanks for reporting.

Fixed nuResizeBrowseColumns() in nuform.js

Re: Auto-resizing of the columns no longer works

Posted: Thu Apr 06, 2023 7:59 pm
by gerese
Hi, for error from the first login , I found this : https://stackoverflow.com/questions/678 ... h-and-will
in the file nudata.php on line 136
instead of

Code: Select all

. $row + 1 .
brackets must be added

Code: Select all

. ($row + 1) . 

Re: Auto-resizing of the columns no longer works

Posted: Thu Apr 06, 2023 8:51 pm
by kev1n
Thanks, it's fixed on Github.

Re: Auto-resizing of the columns no longer works

Posted: Fri Apr 07, 2023 3:14 pm
by selector
Kevin please check resizing of elements, adding by function nuAddBrowseTitleSelect
In nuSetBrowseColumns css selector

Code: Select all

document.querySelectorAll(`[data-nu-column="${i}"], #nuBrowseTitle${i}`);
Does not cover these elements. This will fix it

Code: Select all

columnElements = document.querySelectorAll(`[data-nu-column="${i}"], #nuBrowseTitle${i},#nuBrowseTitle${i}_select`);

Re: Auto-resizing of the columns no longer works

Posted: Fri Apr 07, 2023 5:39 pm
by kev1n
Thanks for that, It's on Github.