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))) { if (is_object($this->getAttributeDefinitionByName($name))) {
return false; return false;
} }
if(!$objtype) if($objtype < SeedDMS_Core_AttributeDefinition::objtype_all || $objtype > SeedDMS_Core_AttributeDefinition::objtype_documentcontent)
return false; return false;
if(!$type) if(!$type)
return false; return false;

View File

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