Fix issue that prevented old form values from getting populated

refs #3788
This commit is contained in:
Matthias Jentsch 2013-10-17 10:18:04 +02:00
parent 1d07a766d9
commit ab2bbcd6dd
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}