CHANGE_API

This commit is contained in:
venba-Inspriron-3558 2025-08-19 11:33:15 +05:30
parent 04950f90b6
commit d3b5384db4
2 changed files with 3 additions and 2 deletions

View File

@ -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";

View File

@ -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;