Page 1 of 1

Form fields stop updating after several 'Save' actions

Posted: Sun Jan 28, 2018 11:46 am
by Fike
When updating a field on any given form and saving, after 3 or 4 times the form stops updating the field.

It can be solved by increasing 'max_input_vars' value on php.ini file (on the server configuration). I increased this value from 2000 to 200000 and now it is working fine.

However, I tracked the cause and I believe it is due to the following line in nuajax.js file :

line 68

Code: Select all

    last.hash	 		= parent.nuHashFromEditForm();
I realized that when I added the following console.log command at the beginning of the nuAjax function definition in the same file:

Code: Select all

function nuAjax(w,successCallback,errorCallback){
    console.log({nuSTATE : w});


When checking the browser's console I realized that this object (nuSTATE) had many nested nuSTATE.hash.hash.hash.hash objects/variables/values after updating a field and saving the form for several times.

This is because each time the form is saved, a new .hash object is inserted to the last window object.

I hope this helps to find a way to prevent nesting this hash objects for many times.

Kind regrads

Re: Form fields stop updating after several 'Save' actions

Posted: Mon Jan 29, 2018 6:57 pm
by admin
Fike,

OK, I think that has been fixed.

Please test the latest on Github.

Steven.

Re: Form fields stop updating after several 'Save' actions

Posted: Thu Feb 01, 2018 9:00 pm
by Fike
Yes...it's working fine now. Thank's a lot !

Re: Form fields stop updating after several 'Save' actions

Posted: Thu Feb 01, 2018 9:08 pm
by admin
.