Form fields stop updating after several 'Save' actions

Questions related to using nuBuilder Forte.

Form fields stop updating after several 'Save' actions

Postby Fike » Sun Jan 28, 2018 8:16 pm

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
Fike
 
Posts: 79
Joined: Fri Oct 21, 2011 4:43 am

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

Postby admin » Tue Jan 30, 2018 3:27 am

Fike,

OK, I think that has been fixed.

Please test the latest on Github.

Steven.
admin
Site Admin
 
Posts: 3154
Joined: Mon Jun 15, 2009 9:53 am

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

Postby Fike » Fri Feb 02, 2018 5:30 am

Yes...it's working fine now. Thank's a lot !
Fike
 
Posts: 79
Joined: Fri Oct 21, 2011 4:43 am

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

Postby admin » Fri Feb 02, 2018 5:38 am

.
admin
Site Admin
 
Posts: 3154
Joined: Mon Jun 15, 2009 9:53 am


Return to General