Custom Module Save button stopped working

We’re using

Version 7.10.6
Sugar Version 6.5.25 (Build 344)

and for some reason the save button is no longer working. There hasn’t been any code changes aside from some mass update fields added (I’ve reverted them to see if that was the problem with no such luck). I can click the save button, but the form doesn’t submit. There are no console errors and nothing shows up in the logs. I’ve done a quick repair and rebuild several times with no success. Of note, I can take the javascript that is on the button, paste it into the console and get the form to submit that way. Also, the form will submit on Internet Explorer, but not on Chrome or Firefox. Unfortunately, we use Mac’s here. Any help would be greatly appreciated.

Can you please try it on the live demo to see if it is the same? (user:will, pass: will)

That’s the thing, it works on all other modules except for this particular one. I can’t find any reason for the failure.

So, it works on the live demo, even for a custom module?

If you need a demo with Admin access, use this one:

Can you please check your logs at the time when then screen renders, and also your browser’s developer console for any Javascript errors?

I’ve found the issue, but I’m not sure what’s triggering it. The either the check_form function is returning false, or the validate_form is returning false. It would be nice to add something in the functions to denote why it’s failing. As of right now I just did an override for check_form to return true.

1 Like

Could you elaborate a bit on your fix? Was there ever a permanent fix?
I believe I am experiencing the same issue in the leads module…

Thanks in advance!

P.S.: yes, I know, it´s been two years…but maybe @xxjonfenxx will read this :wink: