mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-30 05:27:32 +00:00
Merge branch 'seeddms-5.0.x' into develop
This commit is contained in:
commit
170f70d005
|
@ -5,6 +5,7 @@
|
||||||
- MyDocumets: list only documents to approve which have passed review
|
- MyDocumets: list only documents to approve which have passed review
|
||||||
- show preview image in Review/Approval summary
|
- show preview image in Review/Approval summary
|
||||||
- timeout for external commands for creating fulltext index can be set
|
- timeout for external commands for creating fulltext index can be set
|
||||||
|
- add translations for korean
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
Changes in version 4.3.19
|
Changes in version 4.3.19
|
||||||
|
|
|
@ -858,8 +858,14 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
||||||
protected function removeFromDatabase() { /* {{{ */
|
protected function removeFromDatabase() { /* {{{ */
|
||||||
$db = $this->_dms->getDB();
|
$db = $this->_dms->getDB();
|
||||||
|
|
||||||
//Entfernen der Datenbankeinträge
|
|
||||||
$db->startTransaction();
|
$db->startTransaction();
|
||||||
|
// unset homefolder as it will no longer exist
|
||||||
|
$queryStr = "UPDATE tblUsers SET homefolder=NULL WHERE homefolder = " . $this->_id;
|
||||||
|
if (!$db->getResult($queryStr)) {
|
||||||
|
$db->rollbackTransaction();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
// Remove database entries
|
||||||
$queryStr = "DELETE FROM tblFolders WHERE id = " . $this->_id;
|
$queryStr = "DELETE FROM tblFolders WHERE id = " . $this->_id;
|
||||||
if (!$db->getResult($queryStr)) {
|
if (!$db->getResult($queryStr)) {
|
||||||
$db->rollbackTransaction();
|
$db->rollbackTransaction();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user