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

Commit

Permalink
Also apply CREATE action if inherit_recycle
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Nov 19, 2013
1 parent d9c601c commit 33d1b99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/plugins/meta.comments/class.CommentsMetaManager.php
Expand Up @@ -141,7 +141,11 @@ public function switchActions($actionName, $httpVars, $fileVars)

HTMLWriter::charsetHeader("application/json");
if ($feedStore !== false) {
$data = $feedStore->findMetaObjectsByIndexPath(ConfService::getRepository()->getId(), $uniqNode->getPath(), AuthService::getLoggedUser()->getId(), AuthService::getLoggedUser()->getGroupPath(), 0, 100, "date", "asc");
$sortBy = isSet($httpVars["sort_by"])?$httpVars["sort_by"]:"date";
$sortDir = isSet($httpVars["sort_dir"])?$httpVars["sort_dir"]:"asc";
$offset = isSet($httpVars["offset"]) ? intval($httpVars["offset"]) : 0;
$limit = isSet($httpVars["limit"]) ? intval($httpVars["limit"]) : 100;
$data = $feedStore->findMetaObjectsByIndexPath(ConfService::getRepository()->getId(), $uniqNode->getPath(), AuthService::getLoggedUser()->getId(), AuthService::getLoggedUser()->getGroupPath(), $offset, $limit, $sortBy, $sortDir);
$theFeed = array();
foreach ($data as $stdObject) {
$rPath = substr($stdObject->path, strlen($uniqNode->getPath()));
Expand Down

0 comments on commit 33d1b99

Please sign in to comment.