/** * Override the edit method, since we are passed a trigger id, whereas we need to edit the * associated action id. */ public function edit($id) { $filter = array('param1' => "" . $_SESSION['auth_user']->id . "", 'trigger_id' => $id, 'deleted' => 'f'); $ta = $this->db->select('id')->from('trigger_actions')->where($filter)->limit(1)->get()->result_array(); parent::edit($ta[0]->id); }