Describe the bug
In the file \mc-acf-flexible-template\assets\js\mc-acf-ft-template.jsline:195:
The code acf.do_action( 'validation_begin' ); is incorrect, as it's not providing form.$el as it should. This can lead to errors if other plugins hook on validation_begin expecting a parameter.
For reference, here is the original hook by ACF:
File: \advanced-custom-fields-pro\assets\js\acf-input.jsline:13043acf.doAction('validation_begin', this.$el);
To fix the issue:
acf.do_action( 'validation_begin' ); should be replaced by:
acf.doAction('validation_begin', $form);
Describe the bug In the file
\mc-acf-flexible-template\assets\js\mc-acf-ft-template.js
line:195
: The codeacf.do_action( 'validation_begin' );
is incorrect, as it's not providingform.$el
as it should. This can lead to errors if other plugins hook onvalidation_begin
expecting a parameter.For reference, here is the original hook by ACF: File:
\advanced-custom-fields-pro\assets\js\acf-input.js
line:13043
acf.doAction('validation_begin', this.$el);
To fix the issue:
acf.do_action( 'validation_begin' );
should be replaced by:acf.doAction('validation_begin', $form);
Regards.