This commit is contained in:
Jose Gonzalez 2020-12-03 15:51:40 +01:00
parent 279a4124f1
commit 3fd983fb72
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ if ($update_template) {
$recovery_notify = (bool) get_parameter('recovery_notify');
$fields_recovery = [];
for ($i = 1; $i <= 10; $i++) {
for ($i = 1; $i <= $config['max_macro_fields']; $i++) {
$values['field'.$i] = (string) get_parameter('field'.$i);
$values['field'.$i.'_recovery'] = ($recovery_notify) ? (string) get_parameter('field'.$i.'_recovery') : '';
}