- $form->setValueByElement('chclient', 1);
- $form->setValueByElement('chinvoice', 0);
- $form->setValueByElement('chproject', 1);
- $form->setValueByElement('chstart', 1);
- $form->setValueByElement('chduration', 1);
- $form->setValueByElement('chcost', 0);
- $form->setValueByElement('chtask', 1);
- $form->setValueByElement('chfinish', 1);
- $form->setValueByElement('chnote', 1);
- $form->setValueByElement('chcf_1', 0);
- $form->setValueByElement('chtotalsonly', 0);
+ $form->setValueByElement('chclient', '1');
+ $form->setValueByElement('chinvoice', '0');
+ $form->setValueByElement('chproject', '1');
+ $form->setValueByElement('chstart', '1');
+ $form->setValueByElement('chduration', '1');
+ $form->setValueByElement('chcost', '0');
+ $form->setValueByElement('chtask', '1');
+ $form->setValueByElement('chfinish', '1');
+ $form->setValueByElement('chnote', '1');
+ $form->setValueByElement('chcf_1', '0');
+ $form->setValueByElement('chpaid', '0');
+ $form->setValueByElement('chtotalsonly', '0');