public function delete($id)
 {
     // pZ: @TODO można zrobić sprawdzanie czy udało się w ogóle coś skasować...
     if (in_array($this->table, $this->tables_with_company_id)) {
         $this->db->where('company_id', $this->session->userdata('deskdoo_company_id'));
     }
     parent::delete($id);
     $this->session->set_flashdata('alert_success', lang('record_successfully_deleted'));
 }
Example #2
0
 public function delete($id)
 {
     parent::delete($id);
     $this->session->set_flashdata('alert_success', lang('record_successfully_deleted'));
 }