empty($_POST['estimate']) ? 0 : $_POST['estimate']
);
*/
+
+
+
+
$this->issue->project_id = $this->currentProject();
if ($this->issue->id) {
- $this->issue->update($old);
+ if (0 === $this->issue->update($old)) {
+ $this->jerr("nothing changed?");
+
+ }
} else {
$this->issue->insert();
$old = false;
$pd = DB_DataObject::factory('ProjectDirectory');
$pd->project_id = $this->currentProject();
$pd->whereAdd("ProjectDirectory.role != ''");
- $pd->joinAdd(DB_DataObject::factory('Person'), 'LEFT');
+ $pd->joinAdd(DB_DataObject::factory('core_person'), 'LEFT');
$pd->selectAdd();
$pd->selectAdd("distinct(Person.id) as id , CONCAT(Person.name , '<', Person.email , '>') as name");
$pd->groupBy('Person.id, Person.name');