mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
Fix issue that prevented old form values from getting populated
refs #3788
This commit is contained in:
parent
1d07a766d9
commit
ab2bbcd6dd
@ -44,7 +44,7 @@ class MultiCommandFlagForm extends Form {
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const OLD_VALUE_MARKER = '_&&old';
|
||||
const OLD_VALUE_MARKER = '_old_value';
|
||||
|
||||
/**
|
||||
* The object properties to change
|
||||
@ -141,7 +141,7 @@ class MultiCommandFlagForm extends Form {
|
||||
}
|
||||
$old = array();
|
||||
foreach ($values as $key => $value) {
|
||||
$old[$key . self::OLD_VALUE_MARKER] = $key;
|
||||
$old[$key . self::OLD_VALUE_MARKER] = $value;
|
||||
}
|
||||
return array_merge($values, $old);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user