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

Commit

Permalink
Fix empty path in node case - could create issue in metastore for roo…
Browse files Browse the repository at this point in the history
…t node. Activate Watch on Whole Workspace.
  • Loading branch information
cdujeu committed Jun 29, 2016
1 parent 9d9851b commit 1ba320b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/plugins/core.access/src/Model/AJXP_Node.php
Expand Up @@ -597,7 +597,7 @@ public function getUrl()
*/
public function getPath()
{
return $this->urlParts["path"];
return !empty($this->urlParts["path"]) ? $this->urlParts["path"] : "/";
}

public function isRoot()
Expand Down
1 change: 1 addition & 0 deletions core/src/plugins/metastore.serial/SerialMetaStore.php
Expand Up @@ -271,6 +271,7 @@ protected function saveMetaFileData($ajxpNode, $scope, $userId)
$currentFile = $ajxpNode->getUrl();
$repositoryId = $ajxpNode->getRepositoryId();
$fileKey = $ajxpNode->getPath();
if(empty($fileKey)) $fileKey = "/";
if (isSet($this->options["METADATA_FILE_LOCATION"]) && $this->options["METADATA_FILE_LOCATION"] == "outside") {
// Force scope
$scope = AJXP_METADATA_SCOPE_REPOSITORY;
Expand Down

0 comments on commit 1ba320b

Please sign in to comment.