Code

Fixed filter class
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 3 Mar 2010 11:42:35 +0000 (11:42 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 3 Mar 2010 11:42:35 +0000 (11:42 +0000)
-Do not write maxlength='maxlength',  write the value instead

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15912 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_filter.inc

index f44e39dcb5ec03c9cead94245d24390b19123e8b..84da1b5f2e2bbdda6e4ee8cb2f8bd4ecf96c750e 100644 (file)
@@ -147,7 +147,7 @@ class filter {
     if (isset($element['maxlength'])){
       $maxlength= $element['maxlength'];
     }
-    $result= "<input class='filter_textfield' id='$tag' name='$tag' type='text' size='$size' maxlength='maxlength' value='".$this->elementValues[$tag]."'>";
+    $result= "<input class='filter_textfield' id='$tag' name='$tag' type='text' size='$size' maxlength='{$maxlength}' value='".$this->elementValues[$tag]."'>";
     if (isset($element['autocomplete'])) {
       $frequency= "0.5";
       $characters= "1";