FIX_ISACTIVE_ADDED_IN_MODEL
This commit is contained in:
parent
5d9b4ca392
commit
47dd643e53
@ -231,7 +231,9 @@ class Event extends BaseController
|
||||
$data = ['isactive' => 0, 'updated_by' => $session_uid];
|
||||
|
||||
// Update the event as inactive
|
||||
$result = $event_model->where('event_id', $id)->where('isactive', 1)->set($data)->update();
|
||||
// $result = $event_model->where('event_id', $id)->set($data)->update();
|
||||
$result = $event_model->update($id, $data);
|
||||
|
||||
$last_query = $event_model->getLastQuery();
|
||||
// dd($last_query);
|
||||
// Check if the event was updated
|
||||
|
||||
@ -9,7 +9,7 @@ class EventModel extends Model
|
||||
{
|
||||
protected $table = 'events';
|
||||
protected $primaryKey = 'event_id';
|
||||
protected $allowedFields = ['event_id','event_name','created_by','created_on','updated_on' ,'updated_by','business_id','is_the_default'];
|
||||
protected $allowedFields = ['event_id','event_name','created_by','created_on','updated_on' ,'updated_by','business_id','is_the_default','isactive'];
|
||||
|
||||
public function getEventnamesByBusiness($business_id)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user