use getDMS() instead of accessing _dms in folder or document object

This commit is contained in:
Uwe Steinmann 2020-05-18 18:29:19 +02:00
parent ab5ad7011c
commit b4b635e96a

View File

@ -294,7 +294,7 @@ class SeedDMS_Session {
function addToClipboard($object) { /* {{{ */
/* id is only set if load() was called before */
if($this->id) {
$dms = $object->_dms;
$dms = $object->getDMS();
if($object->isType('document')) {
if(!in_array($object->getID(), $this->data['clipboard']['docs']))
array_push($this->data['clipboard']['docs'], $object->getID());
@ -317,7 +317,7 @@ class SeedDMS_Session {
function removeFromClipboard($object) { /* {{{ */
/* id is only set if load() was called before */
if($this->id) {
$dms = $object->_dms;
$dms = $object->getDMS();
if($object->isType('document')) {
$key = array_search($object->getID(), $this->data['clipboard']['docs']);
if($key !== false)