mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +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
|
* @var string
|
||||||
*/
|
*/
|
||||||
const OLD_VALUE_MARKER = '_&&old';
|
const OLD_VALUE_MARKER = '_old_value';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The object properties to change
|
* The object properties to change
|
||||||
@ -141,7 +141,7 @@ class MultiCommandFlagForm extends Form {
|
|||||||
}
|
}
|
||||||
$old = array();
|
$old = array();
|
||||||
foreach ($values as $key => $value) {
|
foreach ($values as $key => $value) {
|
||||||
$old[$key . self::OLD_VALUE_MARKER] = $key;
|
$old[$key . self::OLD_VALUE_MARKER] = $value;
|
||||||
}
|
}
|
||||||
return array_merge($values, $old);
|
return array_merge($values, $old);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user