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

Commit 4f98bfc

Browse files
committed
Fix params loading & merging.
Fix SearchEngine advanced panel when no metadata fields registered for indexation.
1 parent 8529c64 commit 4f98bfc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

core/src/core/classes/class.AJXP_Plugin.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,10 @@ protected function loadConfigsDefinitions()
552552
$params = $this->xPath->query("//server_settings/global_param|//server_settings/param");
553553
$this->pluginConf = array();
554554
foreach ($params as $xmlNode) {
555+
$global = ($xmlNode->nodeName == "global_param");
555556
$paramNode = $this->nodeAttrToHash($xmlNode);
556557
$this->pluginConfDefinition[$paramNode["name"]] = $paramNode;
557-
if (isset($paramNode["default"])) {
558+
if ($global && isset($paramNode["default"])) {
558559
if ($paramNode["type"] == "boolean") {
559560
$paramNode["default"] = ($paramNode["default"] === "true" ? true: false);
560561
} else if ($paramNode["type"] == "integer") {

core/src/plugins/gui.ajax/res/js/ajaxplorer/class.SearchEngine.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ Class.create("SearchEngine", AjxpPane, {
6565
this._ajxpOptions = Object.extend(this._ajxpOptions, ajxpOptions);
6666
}
6767
$super($(mainElementName), this._ajxpOptions);
68+
69+
if(!this._ajxpOptions.metaColumns) this._ajxpOptions.metaColumns = {};
70+
6871
this.updateSearchModeFromRegistry();
6972
this.searchModeObserver = this.updateSearchModeFromRegistry.bind(this);
7073
document.observe("ajaxplorer:registry_loaded", this.searchModeObserver);

0 commit comments

Comments
 (0)