DirectorObjectForm: failsafe check for object_type

This commit is contained in:
Thomas Gelf 2016-03-18 11:38:08 +01:00
parent 8680f04532
commit 85b26822c0
1 changed files with 4 additions and 0 deletions

View File

@ -971,6 +971,10 @@ print_r($object);
protected function hasObjectType()
{
if (!$this->object()->hasProperty('object_type')) {
return false;
}
return ! $this->valueIsEmpty($this->getSentOrObjectValue('object_type'));
}