fix SeedDMS_Core_DMS::addAttributeDefinition() when objtype is 0

This commit is contained in:
Uwe Steinmann 2022-07-06 09:15:12 +02:00
parent 0799f908f1
commit dd8f1b7a8e
2 changed files with 2 additions and 1 deletions

View File

@ -2703,7 +2703,7 @@ class SeedDMS_Core_DMS {
if (is_object($this->getAttributeDefinitionByName($name))) {
return false;
}
if(!$objtype)
if($objtype < SeedDMS_Core_AttributeDefinition::objtype_all || $objtype > SeedDMS_Core_AttributeDefinition::objtype_documentcontent)
return false;
if(!$type)
return false;

View File

@ -24,6 +24,7 @@
</stability>
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
<notes>
fix SeedDMS_Core_DMS::addAttributeDefinition() when objtype is 0
</notes>
<contents>
<dir baseinstalldir="SeedDMS" name="/">