DirectorObjectForm: failsafe check for object_type
This commit is contained in:
parent
8680f04532
commit
85b26822c0
|
@ -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'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue