mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +00:00
create temp table ttcontentid in getDocumentByOriginalFilename()
This commit is contained in:
parent
31e001172f
commit
a68f644ba5
|
@ -793,6 +793,9 @@ class SeedDMS_Core_DMS {
|
|||
function getDocumentByOriginalFilename($name, $folder=null) { /* {{{ */
|
||||
if (!$name) return false;
|
||||
|
||||
if (!$this->db->createTemporaryTable("ttcontentid")) {
|
||||
return false;
|
||||
}
|
||||
$queryStr = "SELECT `tblDocuments`.*, `tblDocumentLocks`.`userID` as `lockUser` ".
|
||||
"FROM `tblDocuments` ".
|
||||
"LEFT JOIN `ttcontentid` ON `ttcontentid`.`document` = `tblDocuments`.`id` ".
|
||||
|
|
Loading…
Reference in New Issue
Block a user