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

Commit 0fbe393

Browse files
committed
Fix template_children parameter
1 parent dc0022a commit 0fbe393

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/plugins/access.ajxp_conf/src/RepositoriesManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -768,8 +768,8 @@ public function listNodes(ServerRequestInterface $requestInterface, $rootPath, $
768768
}else{
769769
$criteria["parent_uuid"] = AJXP_FILTER_EMPTY;
770770
}
771-
if(isSet($requestInterface) && is_array($requestInterface) && isSet($requestInterface["template_children_id"])){
772-
$criteria["parent_uuid"] = InputFilter::sanitize($requestInterface["template_children_id"], InputFilter::SANITIZE_ALPHANUM);
771+
if(isSet($requestInterface->getParsedBody()["template_children_id"])){
772+
$criteria["parent_uuid"] = InputFilter::sanitize($requestInterface->getParsedBody()["template_children_id"], InputFilter::SANITIZE_ALPHANUM);
773773
}
774774

775775
$repos = RepositoryService::listRepositoriesWithCriteria($criteria, $count);

0 commit comments

Comments
 (0)