diff --git a/library/Director/Web/Form/DirectorObjectForm.php b/library/Director/Web/Form/DirectorObjectForm.php index e5ce25b2..f142902f 100644 --- a/library/Director/Web/Form/DirectorObjectForm.php +++ b/library/Director/Web/Form/DirectorObjectForm.php @@ -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')); }