Code

Added missing properties
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 May 2010 10:16:07 +0000 (10:16 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 May 2010 10:16:07 +0000 (10:16 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18196 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_config.inc
gosa-core/include/class_core.inc

index c11a7dbbfcfb596362cf685c938e12dd31b3db00..062bb253103752117ede64fd333f700828ccc997 100644 (file)
@@ -334,8 +334,8 @@ class config  {
       }
 
       if (!session::global_is_set('size_limit')){
-        session::global_set('size_limit',$this->current['LDAPSIZELIMIT']);
-        session::global_set('size_ignore',$this->current['LDAPSIZEIGNORE']);
+        session::global_set('size_limit', $this->get_cfg_value('core', 'ldapSizeLimit'));
+        session::global_set('size_ignore', $this->boolValueIsTrue('core', 'ldapSizeIgnore'));
       }
     }
 
index 34aeffab719c73c1bebcf52bba76c5a6c94d0cbf..586a8155ba21ec20b7d088a3f071281e0df2fbf3 100644 (file)
@@ -212,7 +212,7 @@ class core extends plugin {
 
                         array(
                                 "name"          => "ldapSizelimit",
-                                "type"          => "bool",
+                                "type"          => "integer",
                                 "default"       => 200,
                                 "description"   => _("The ldapSizelimit statement tells GOsa to retrieve the specified maximum number of results. The user will get  a  warning,  that  not  all entries were shown."), 
                                 "check"         => "gosaProperty::isInteger",
@@ -220,6 +220,16 @@ class core extends plugin {
                                 "group"         => "core",
                                 "mandatory"     => TRUE),
 
+                        array(
+                                "name"          => "ldapSizeIgnore",
+                                "type"          => "bool",
+                                "default"       => "false",
+                                "description"   => _("Disables sizelimit checks, only the configured amount of results will be shown!"),
+                                "check"         => "gosaProperty::isBool",
+                                "migrate"       => "",
+                                "group"         => "core",
+                                "mandatory"     => FALSE),
+
                         array(
                                 "name"          => "warnSSL",
                                 "type"          => "bool",