Permalink
Browse files

Fix template_children parameter

  • Loading branch information...
1 parent dc0022a commit 0fbe393051223095ca02f5d89f6dcfb14f32e2e6 @cdujeu cdujeu committed Sep 27, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/src/plugins/access.ajxp_conf/src/RepositoriesManager.php
@@ -768,8 +768,8 @@ public function listNodes(ServerRequestInterface $requestInterface, $rootPath, $
}else{
$criteria["parent_uuid"] = AJXP_FILTER_EMPTY;
}
- if(isSet($requestInterface) && is_array($requestInterface) && isSet($requestInterface["template_children_id"])){
- $criteria["parent_uuid"] = InputFilter::sanitize($requestInterface["template_children_id"], InputFilter::SANITIZE_ALPHANUM);
+ if(isSet($requestInterface->getParsedBody()["template_children_id"])){
+ $criteria["parent_uuid"] = InputFilter::sanitize($requestInterface->getParsedBody()["template_children_id"], InputFilter::SANITIZE_ALPHANUM);
}
$repos = RepositoryService::listRepositoriesWithCriteria($criteria, $count);

0 comments on commit 0fbe393

Please sign in to comment.