openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 783f0bbc7ae6e12668d4b4de8fbb62ad58dac898
parent a5a675191c34caa73c16f3deb06d3558d94ec52a
Author: Jan Dankert <devnull@localhost>
Date:   Fri,  1 Aug 2014 00:00:15 +0200

Fix: Drag n Drop.

Diffstat:
action/ObjectAction.class.php | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/action/ObjectAction.class.php b/action/ObjectAction.class.php @@ -140,7 +140,7 @@ class ObjectAction extends Action $f->name = lang('COPY_OF').' '.$f->name; $f->parentid = $targetObjectId; $f->add(); - $f->copyValueFromFile( $id ); + $f->copyValueFromFile( $sourceObjectId ); $this->addNotice($sourceObject->getType(),$sourceObject->name,'COPIED','ok'); break; @@ -152,7 +152,7 @@ class ObjectAction extends Action $p->name = lang('COPY_OF').' '.$p->name; $p->parentid = $targetObjectId; $p->add(); - $p->copyValuesFromPage( $id ); + $p->copyValuesFromPage( $sourceObjectId ); $this->addNotice($sourceObject->getType(),$sourceObject->name,'COPIED','ok'); break; @@ -185,7 +185,8 @@ class ObjectAction extends Action $link->parentid = $targetObjectId; $link->name = lang('LINK_TO').' '.$sourceObject->name; $link->filename = $sourceObject->filename; - $link->linkedObjectId = $sourceObjectId; + $link->linkedObjectId = $sourceObjectId; + $link->isLinkToObject = true; $link->add(); $this->addNotice('link', $link->name, 'added'); // OK