CHANGE_API
This commit is contained in:
parent
04950f90b6
commit
d3b5384db4
@ -35,7 +35,8 @@ class ThzController extends BaseController
|
||||
|
||||
public function ticketSave(){
|
||||
|
||||
$data = $this->request->getJSON(true);
|
||||
$data = $this->request->getPost();
|
||||
// $data = $this->request->getJSON(true);
|
||||
// $return_type = isset($data['return_type']) ? $data['return_type'] : 'api';
|
||||
if (!empty($data['thz_id'])) {
|
||||
$text = "update";
|
||||
|
||||
@ -12,7 +12,7 @@ class ThzMasterModel extends Model
|
||||
protected $returnType = 'array';
|
||||
protected $useSoftDeletes = false;
|
||||
protected $protectFields = true;
|
||||
protected $allowedFields = ['name','mobile','email','empcode','policy_no','ticket_type','subject','message','status','assign_to','created_at','updated_at'];
|
||||
protected $allowedFields = ['name','mobile','email','empcode','policy_no','ticket_type','subject','message','status','assign_to','created_at','updated_at','created_by','updated_by' ,'client_id' ,'policy_id' ,'branch_id'];
|
||||
|
||||
protected bool $allowEmptyInserts = false;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user