No validation when using Header save button in AOS_Products

Hi,

I’ve been using SuiteCRM quite some time already. Today I noticed a strange behaviour in the AOS_Products module:
When you use the save button on top, the validation of the fields will not be triggered. If you use the lower one, everything works fine.
I have tested this is on a fresh 7.11.10 install - multiple times.
There is some difference in the top and bottom onclick function:

Top onclick:
var _form = (this.form) ? this.form : document.forms[0]; _form.action.value=‘Save’; if(check_form(’’))SUGAR.ajaxUI.submitForm(_form);return false;

Lower onclick:
var _form = document.getElementById(‘EditView’); _form.action.value=‘Save’; if(check_form(‘EditView’))SUGAR.ajaxUI.submitForm(_form);return false;

Looks like there is something wrong with the way the it is processed.

That looks like a nice-enough bug report, can you please search GitHub to see if it’s already there, and if not, open an Issue yourself?

Thanks!

Alright, I created a new bug report on GitHub

1 Like