From b4b635e96adf093d6a5a9a8f1f960f592e77aaeb Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 18 May 2020 18:29:19 +0200 Subject: [PATCH 1/4] use getDMS() instead of accessing _dms in folder or document object --- inc/inc.ClassSession.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/inc.ClassSession.php b/inc/inc.ClassSession.php index 8dcc92283..78f796a0b 100644 --- a/inc/inc.ClassSession.php +++ b/inc/inc.ClassSession.php @@ -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) From f7bcec7be73b8767fc1369e58261829531621c21 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 18 May 2020 18:29:52 +0200 Subject: [PATCH 2/4] set folder id in clipboard div (Closes: #473) --- views/bootstrap/class.Bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index a5d1a9d72..f7a2d6356 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -375,7 +375,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);; } if($this->params['enableclipboard']) { echo "
"; - echo "
"; + echo "
getID() : 0)."\">
"; echo "
"; } From 5330505ceb6f00b0ab3137020b003761f4fc008a Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 18 May 2020 18:30:39 +0200 Subject: [PATCH 3/4] goto viewFolder page after moving clipboard --- views/bootstrap/class.Clipboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/bootstrap/class.Clipboard.php b/views/bootstrap/class.Clipboard.php index ea595dd56..053b3df1e 100644 --- a/views/bootstrap/class.Clipboard.php +++ b/views/bootstrap/class.Clipboard.php @@ -65,7 +65,7 @@ class SeedDMS_View_Clipboard extends SeedDMS_Bootstrap_Style { } $content .= "
  • \n"; if(isset($this->params['folder']) && $this->params['folder']->getAccessMode($this->params['user']) >= M_READWRITE) { - $content .= "
  • params['folder']->getID()."&refferer=".urlencode($this->params['refferer'])."\">".getMLText("move_clipboard")."
  • \n"; + $content .= "
  • params['folder']->getID()."&refferer=".urlencode('../out/out.ViewFolder.php?folderid='.$this->params['folder']->getID())."\">".getMLText("move_clipboard")."
  • \n"; } // $content .= "
  • params['refferer'])."\">".getMLText("clear_clipboard")."kkk
  • \n"; // $content .= "
  • ".getMLText("clear_clipboard")."
  • \n"; From 8338b99f4f8f722984050dfdee6e7c1b138ebdb8 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 18 May 2020 18:31:31 +0200 Subject: [PATCH 4/4] add entry for 5.1.17 --- CHANGELOG | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG b/CHANGELOG index 347d5f291..988787574 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -9,6 +9,7 @@ - clipboard can be pinned to fixed position - use standard output for document rows on MyDocuments page - new seeddms logo +- fix moving clipboard (Closes: #473) -------------------------------------------------------------------------------- Changes in version 5.1.16