mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-10 18:09:30 -04:00
Added allowedFields to models
- Without this save(), insert() and update() fail
This commit is contained in:
committed by
Steve Ireland
parent
7738242386
commit
6126483586
@@ -10,6 +10,12 @@ use CodeIgniter\Model;
|
||||
*/
|
||||
class Module extends Model
|
||||
{
|
||||
protected $allowedFields = [
|
||||
'name_lang_key',
|
||||
'desc_lang_key',
|
||||
'sort'
|
||||
];
|
||||
|
||||
public function get_module_name(string $module_id): string
|
||||
{
|
||||
$builder = $this->db->table('modules');
|
||||
@@ -128,4 +134,4 @@ class Module extends Model
|
||||
|
||||
return $builder->get()->getRow()->sort;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user