Skip to content

Commit

Permalink
Fix issue that prevented old form values from getting populated
Browse files Browse the repository at this point in the history
refs #3788
  • Loading branch information
majentsch committed Oct 18, 2013
1 parent 1d07a76 commit ab2bbcd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -141,7 +141,7 @@ private function valuesFromObjects(array $items)
}
$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);
}
Expand Down

0 comments on commit ab2bbcd

Please sign in to comment.