Merge branch '2016.11' into 2016.11-develop
authorPhilipp Schüle <p.schuele@metaways.de>
Thu, 1 Dec 2016 17:05:50 +0000 (18:05 +0100)
committerPhilipp Schüle <p.schuele@metaways.de>
Thu, 1 Dec 2016 17:05:50 +0000 (18:05 +0100)
tine20/Timetracker/js/TimesheetEditDialog.js

index acf3f71..7965af7 100644 (file)
@@ -103,14 +103,10 @@ Tine.Timetracker.TimesheetEditDialog = Ext.extend(Tine.widgets.dialog.EditDialog
             // clearable depends on timeaccount is_billable as well (changed by ps / 2009-09-01, behaviour was inconsistent)
             notClearable = notClearable || timeaccount.data.is_billable == "0" || timeaccount.get('is_billable') == "0";
         }
-
-        if (notBillable) {
-            this.getForm().findField('is_billable').setValue(false);
-        }
-
+        
         this.getForm().findField('is_billable').setDisabled(notBillable);
         this.getForm().findField('is_cleared').setDisabled(notClearable);
-
+        
         if (this.record.id == 0 && timeaccount) {
             // set is_billable for new records according to the timeaccount setting
             this.getForm().findField('is_billable').setValue(timeaccount.data.is_billable);