Skip to content

Commit a42d987

Browse files
committed
fix: spostamento widget da stato dei servizi
1 parent 39f08c5 commit a42d987

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

modules/stato_servizi/actions.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,15 @@
258258
->where('id', '=', $id)
259259
->update(['location' => $location]);
260260

261+
$name = $database->table('zz_widgets_lang')
262+
->where('id_record', '=', $id)
263+
->where('id_lang', '=', Models\Locale::getDefault()->id)
264+
->first()
265+
->title;
266+
261267
// Messaggio informativo
262268
flash()->info(tr('Posizione del widget "_NAME_" aggiornata!', [
263-
'_NAME_' => $widget->getTranslation('title'),
269+
'_NAME_' => $name,
264270
]));
265271

266272
echo json_encode([]);

0 commit comments

Comments
 (0)