Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
publishNodeChange was not taking into account the "copy" parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Nov 27, 2013
1 parent 88b2965 commit 375bc83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/plugins/core.mq/class.MqManager.php
Expand Up @@ -97,15 +97,15 @@ public function publishNodeChange($origNode = null, $newNode = null, $copy = fal
$repo = $newNode->getRepositoryId();
$update = false;
$data = array();
if ($origNode != null) {
if ($origNode != null && !$copy) {
$update = true;
$data[$origNode->getPath()] = $newNode;
} else {
$data[] = $newNode;
}
$content = AJXP_XMLWriter::writeNodesDiff(array(($update?"UPDATE":"ADD") => $data));
}
if ($origNode != null && ! $update) {
if ($origNode != null && ! $update && !$copy) {
$repo = $origNode->getRepositoryId();
$content = AJXP_XMLWriter::writeNodesDiff(array("REMOVE" => array($origNode->getPath())));
}
Expand Down

0 comments on commit 375bc83

Please sign in to comment.