DirectorObjectForm: never inherit object_name

This commit is contained in:
Thomas Gelf 2015-08-03 13:42:52 +02:00
parent b90c93ebdc
commit 73ed4d398f
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ abstract class DirectorObjectForm extends QuickForm
$origins = $object->getOriginsProperties();
foreach ($props as $k => $v) {
if (property_exists($inherited, $k)) {
if ($k !== 'object_name' && property_exists($inherited, $k)) {
$this->setElementValue($k, $v, $inherited->$k, $origins->$k);
} else {
$this->setElementValue($k, $v);