Imporoved isTrue function to get rid of PHP warnings.
[timetracker.git] / WEB-INF / templates / user_edit.tpl
index 7475c6e..3294754 100644 (file)
@@ -62,8 +62,10 @@ function handleClientControl() {
       var isClient = roles[i][1];
       if (isClient == 1)
         clientControl.style.visibility = "visible";
-      else
+      else {
+        clientControl.value = '';
         clientControl.style.visibility = "hidden";
+      }
       break;
     }
   }