Another fix in week view for negative hours.
[timetracker.git] / WEB-INF / lib / form / CheckboxGroup.class.php
index f672270..9488b5c 100644 (file)
@@ -38,10 +38,9 @@ class CheckboxGroup extends FormElement {
     var $lSelAll       = "All";
     var $lSelNone      = "None";
 
-  function __construct($name, $value = '') {
+  function __construct($name) {
     $this->class = 'CheckboxGroup';
     $this->name = $name;
-    $this->value = $value;
   }
 
        function setChecked($value)     { $this->mChecked = $value; }
@@ -59,9 +58,10 @@ class CheckboxGroup extends FormElement {
        function setGroupIn($value)     { $this->mGroupIn = $value; if ($this->mGroupIn<1) $this->mGroupIn = 1;}
        function getGroupIn() { return $this->mGroupIn; }
        
-       function localize($i18n) {
-               $this->lSelAll = $i18n->getKey('label.select_all');
-               $this->lSelNone = $i18n->getKey('label.select_none');
+       function localize() {
+          global $i18n;
+          $this->lSelAll = $i18n->get('label.select_all');
+          $this->lSelNone = $i18n->get('label.select_none');
        }
                
        function getHtml() {