mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
LSsearch : Fixed error message on invalid predefinedFilter detection. Updated translation consequently.
This commit is contained in:
parent
2e3a8cade5
commit
e834323718
4 changed files with 1306 additions and 1291 deletions
|
@ -122,9 +122,9 @@ class LSsearch {
|
||||||
private function loadConfig() {
|
private function loadConfig() {
|
||||||
$this -> config = LSconfig::get("LSobjects.".$this -> LSobject.".LSsearch");
|
$this -> config = LSconfig::get("LSobjects.".$this -> LSobject.".LSsearch");
|
||||||
if (is_array($this -> config['predefinedFilters'])) {
|
if (is_array($this -> config['predefinedFilters'])) {
|
||||||
foreach(array_keys($this -> config['predefinedFilters']) as $key) {
|
foreach($this -> config['predefinedFilters'] as $filter => $label) {
|
||||||
if(!LSldap::isValidFilter($key)) {
|
if(!LSldap::isValidFilter($filter)) {
|
||||||
LSerror::addErrorCode('LSsearch_01','$key');
|
LSerror::addErrorCode('LSsearch_15',array('label' => $label, 'filter' => $filter, 'type' => $this -> LSobject));
|
||||||
unset($this -> config['predefinedFilters'][$key]);
|
unset($this -> config['predefinedFilters'][$key]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1221,5 +1221,8 @@ _("LSsearch : Error sorting the search.")
|
||||||
LSerror :: defineError('LSsearch_14',
|
LSerror :: defineError('LSsearch_14',
|
||||||
_("LSsearch : The function of the custum information %{name} is not callable.")
|
_("LSsearch : The function of the custum information %{name} is not callable.")
|
||||||
);
|
);
|
||||||
|
LSerror :: defineError('LSsearch_15',
|
||||||
|
_("LSsearch : Invalid predefinedFilter for LSobject type %{type} : %{label} (filter : %{filter}).")
|
||||||
|
);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Binary file not shown.
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue