|
|
|
If I create a new task in PHP and set priority to 0:
| Code: |
$obj = new CTask();
$obj->task_id=0;
$obj->task_parent=0;
$obj->task_priority=0;
$obj->task_owner = $AppUI->user_id;
$obj->task_project=2;
$obj->task_name='test';
$obj->task_duration=1;
$obj->task_end_date='2010-01-01 08:00:00';
$obj->task_start_date='2010-01-01 09:00:00';
$result = $obj->store($AppUI);
|
then ::task->check() which is called in store() throws an error in
| Code: |
if ($this->task_priority == '') {
$errorArray['task_priority'] = $baseErrorMsg . 'task priority is NULL';
|
is that as intended?
If I set task_priority to 1,2, no problem.
Now, I see many entries in the db where task_priority == 0. How do they get there? My background is C++, so wrong understanding of PHP?
Thanks for any help,
Klaus |
|