mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
fix SeedDMS_Core_DMS::addAttributeDefinition() when objtype is 0
This commit is contained in:
parent
0799f908f1
commit
dd8f1b7a8e
|
@ -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;
|
||||
|
|
|
@ -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="/">
|
||||
|
|
Loading…
Reference in New Issue
Block a user