mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-28 00:30:45 +01:00
Fix creazione categorie in gestione documentale
This commit is contained in:
parent
7e1e27bec7
commit
c63c94c137
@ -19,7 +19,13 @@ class Categoria extends Model
|
|||||||
$model->save();
|
$model->save();
|
||||||
|
|
||||||
$gruppi = database()->fetchArray('SELECT `id` FROM `zz_groups`');
|
$gruppi = database()->fetchArray('SELECT `id` FROM `zz_groups`');
|
||||||
$model->syncPermessi($gruppi);
|
foreach($gruppi as $array) {
|
||||||
|
foreach($array as $k=>$v) {
|
||||||
|
$newArray[$k] = $v;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$model->syncPermessi($newArray);
|
||||||
|
|
||||||
return $model;
|
return $model;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user