Fix update campi in viste

This commit is contained in:
Pek5892 2024-05-03 14:51:07 +02:00
parent 063337f9cb
commit 432d781ce2
1 changed files with 3 additions and 2 deletions

View File

@ -51,6 +51,7 @@ switch (filter('op')) {
foreach ($queries as $c => $query) {
if (check_query($query)) {
$array = [
'name' => post('name')[$c],
'query' => $query,
'visible' => post('visible')[$c],
'search' => post('search')[$c],
@ -63,7 +64,7 @@ switch (filter('op')) {
'id_module' => $id_record,
];
$name = post('name')[$c];
$title = post('name')[$c];
if (!empty(post('id')[$c]) && !empty($query)) {
$id = post('id')[$c];
@ -77,7 +78,7 @@ switch (filter('op')) {
// Aggiornamento traduzione nome campo
$vista = View::find($id);
$vista->setTranslation('title', $name);
$vista->setTranslation('title', $title);
// Aggiornamento dei permessi relativi
$dbo->sync('zz_group_view', ['id_vista' => $id], ['id_gruppo' => (array) post('gruppi')[$c]]);