mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-09 18:42:56 +00:00
fix sql error when deleting a folder attribute
This commit is contained in:
parent
7cba489f1a
commit
239487e198
|
@ -247,7 +247,7 @@ class SeedDMS_Core_Attribute { /* {{{ */
|
||||||
break;
|
break;
|
||||||
case $this->_dms->getClassname('folder'):
|
case $this->_dms->getClassname('folder'):
|
||||||
if(trim($value) === '')
|
if(trim($value) === '')
|
||||||
$queryStr = "DELETE FROM `tblFolderAttributes WHERE` `folder` = " . $this->_obj->getID() . " AND `attrdef` = " . $this->_attrdef->getId();
|
$queryStr = "DELETE FROM `tblFolderAttributes` WHERE `folder` = " . $this->_obj->getID() . " AND `attrdef` = " . $this->_attrdef->getId();
|
||||||
else
|
else
|
||||||
$queryStr = "UPDATE `tblFolderAttributes` SET `value` = ".$db->qstr($value)." WHERE `folder` = " . $this->_obj->getID() . " AND `attrdef` = " . $this->_attrdef->getId();
|
$queryStr = "UPDATE `tblFolderAttributes` SET `value` = ".$db->qstr($value)." WHERE `folder` = " . $this->_obj->getID() . " AND `attrdef` = " . $this->_attrdef->getId();
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<email>uwe@steinmann.cx</email>
|
<email>uwe@steinmann.cx</email>
|
||||||
<active>yes</active>
|
<active>yes</active>
|
||||||
</lead>
|
</lead>
|
||||||
<date>2022-09-24</date>
|
<date>2022-11-07</date>
|
||||||
<time>13:44:55</time>
|
<time>13:44:55</time>
|
||||||
<version>
|
<version>
|
||||||
<release>5.1.28</release>
|
<release>5.1.28</release>
|
||||||
|
@ -27,6 +27,7 @@
|
||||||
- fix SeedDMS_Core_User::getDocumentContents()
|
- fix SeedDMS_Core_User::getDocumentContents()
|
||||||
- fix SeedDMS_Core_File::fileExtension()
|
- fix SeedDMS_Core_File::fileExtension()
|
||||||
- SeedDMS_Core_DMS::createPasswordRequest() creates a cryptographically secure hash
|
- SeedDMS_Core_DMS::createPasswordRequest() creates a cryptographically secure hash
|
||||||
|
- fix sql error when deleting a folder attribute
|
||||||
</notes>
|
</notes>
|
||||||
<contents>
|
<contents>
|
||||||
<dir baseinstalldir="SeedDMS" name="/">
|
<dir baseinstalldir="SeedDMS" name="/">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user