public function _on_created() { $this->_locale_restore(); //Try to mark the parent task as started try { $parent = new org_openpsa_projects_task_dba($this->task); $parent->update_cache(); org_openpsa_projects_workflow::start($parent, $this->person); //Add person to resources if necessary $parent->get_members(); if (!array_key_exists($this->person, $parent->resources)) { $parent->add_members('resources', array($this->person)); } } catch (midcom_error $e) { } }