mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
rollback r10332. there are a problem on trigger document.deleteDocument after
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10416 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
428d51943c
commit
190eb6e3ab
1 changed files with 5 additions and 3 deletions
|
|
@ -104,9 +104,11 @@
|
|||
function getDocument($document_srl=0, $is_admin = false, $load_extra_vars=true, $columnList = array()) {
|
||||
if(!$document_srl) return new documentItem();
|
||||
|
||||
$oDocument = new documentItem($document_srl, $load_extra_vars, $columnList);
|
||||
$GLOBALS['XE_DOCUMENT_LIST'][$document_srl] = $oDocument;
|
||||
if($load_extra_vars && !$GLOBALS['XE_EXTRA_VARS'][$document_srl]) $this->setToAllDocumentExtraVars();
|
||||
if(!isset($GLOBALS['XE_DOCUMENT_LIST'][$document_srl])) {
|
||||
$oDocument = new documentItem($document_srl, $load_extra_vars, $columnList);
|
||||
$GLOBALS['XE_DOCUMENT_LIST'][$document_srl] = $oDocument;
|
||||
if($load_extra_vars) $this->setToAllDocumentExtraVars();
|
||||
}
|
||||
if($is_admin) $GLOBALS['XE_DOCUMENT_LIST'][$document_srl]->setGrant();
|
||||
|
||||
return $GLOBALS['XE_DOCUMENT_LIST'][$document_srl];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue