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

Commit

Permalink
Do not set default plugin value if not in meta source.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Feb 27, 2015
1 parent 56cda77 commit 55d0c2e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/src/core/classes/class.AJXP_XMLWriter.php
Expand Up @@ -637,8 +637,11 @@ public static function writeRepositoriesData($loggedUser)
$params = array();
foreach($exposed as $exposed_prop){
$metaOptions = $repoObject->getOption("META_SOURCES");
if(!isSet($metaOptions[$exposed_prop["PLUGIN_ID"]])){
continue;
}
$value = $exposed_prop["DEFAULT"];
if(isSet($metaOptions[$exposed_prop["PLUGIN_ID"]]) && isSet($metaOptions[$exposed_prop["PLUGIN_ID"]][$exposed_prop["NAME"]])){
if(isSet($metaOptions[$exposed_prop["PLUGIN_ID"]][$exposed_prop["NAME"]])){
$value = $metaOptions[$exposed_prop["PLUGIN_ID"]][$exposed_prop["NAME"]];
}
$value = $merged->filterParameterValue($exposed_prop["PLUGIN_ID"], $exposed_prop["NAME"], $repoId, $value);
Expand Down

0 comments on commit 55d0c2e

Please sign in to comment.