Added support for filling a submitted form when the callback returns true.

This commit is contained in:
Lewin Probst 2020-03-22 18:12:45 +01:00
parent 3c1da15e99
commit 4e918d21f1

View file

@ -216,6 +216,8 @@ return new class extends Module
&& !$options[self::OPTIONS_CALLBACK_ON_SUBMIT]($submitted_data) && !$options[self::OPTIONS_CALLBACK_ON_SUBMIT]($submitted_data)
) { ) {
return false; return false;
} else {
$options[self::OPTIONS_DATA] = $submitted_data;
} }
// setup form attributes if required // setup form attributes if required