diff --git a/KNOWN-ISSUES.md b/KNOWN-ISSUES.md index 69b19d7bb..6d190a75e 100644 --- a/KNOWN-ISSUES.md +++ b/KNOWN-ISSUES.md @@ -28,7 +28,7 @@ oppure aggiornare alla **v.2.5** di OpenSTAManager. ##### Soluzione Eseguire a database le seguenti query di allineamento: ```bash -UPDATE `zz_modules` SET `icon` = 'fa fa-exchange' WHERE `name` = 'Causali movimenti'; +UPDATE `zz_modules` SET `icon` = 'fa fa-exchange' WHERE `title` = 'Causali movimenti'; ALTER TABLE `zz_groups` ADD `id_module_start` INT NULL AFTER `editable`; ``` diff --git a/actions.php b/actions.php index 7ec7067f8..739289603 100755 --- a/actions.php +++ b/actions.php @@ -42,7 +42,7 @@ if (filter('op') == 'aggiungi-allegato' || filter('op') == 'rimuovi-allegato') { // Controllo sui permessi di scrittura per il modulo if (Modules::getPermission($id_module) != 'rw') { flash()->error(tr('Non hai permessi di scrittura per il modulo _MODULE_', [ - '_MODULE_' => '"'.Module::find($id_module)->getTranslation('name').'"', + '_MODULE_' => '"'.Module::find($id_module)->getTranslation('title').'"', ])); } @@ -67,7 +67,7 @@ if (filter('op') == 'aggiungi-allegato' || filter('op') == 'rimuovi-allegato') { $upload = Uploads::upload($_FILES['upload'], [ 'name' => filter('nome_allegato'), 'category' => filter('categoria'), - 'id_module' => (new Module())->getByField('name', 'Gestione documentale', Models\Locale::getPredefined()->id), + 'id_module' => (new Module())->getByField('title', 'Gestione documentale', Models\Locale::getPredefined()->id), 'id_record' => $id_record, ]); @@ -221,7 +221,7 @@ elseif (filter('op') == 'modifica-allegato') { if (sizeof($id_allegati) == 1) { $upload = Upload::find($id_allegati[0]); - $upload->setTranslation('name', post('nome_allegato')); + $upload->setTranslation('title', post('nome_allegato')); $upload->category = post('categoria_allegato'); $upload->save(); } else { @@ -492,7 +492,7 @@ if ($structure->permission == 'rw') { if (post('op') != null) { $custom_where = !empty($id_plugin) ? '`id_plugin` = '.prepare($id_plugin) : '`id_module` = '.prepare($id_module); - $query = 'SELECT `id`, `html_name` AS `name` FROM `zz_fields` WHERE '.$custom_where; + $query = 'SELECT `id`, `html_name` AS `title` FROM `zz_fields` WHERE '.$custom_where; $customs = $dbo->fetchArray($query); if (post('op') != 'delete') { diff --git a/ajax.php b/ajax.php index 0fc0c6a8c..e804bbb83 100755 --- a/ajax.php +++ b/ajax.php @@ -112,7 +112,7 @@ switch (filter('op')) { if ($hook->permission != '-') { $results[] = [ 'id' => $hook->id, - 'name' => $hook->getTranslation('name'), + 'name' => $hook->getTranslation('title'), ]; } } diff --git a/cron.php b/cron.php index 8b208f67b..cd21b4180 100644 --- a/cron.php +++ b/cron.php @@ -61,13 +61,13 @@ $handler->setFormatter($formatter); $logger->pushHandler($handler); // Lettura della cache -$ultima_esecuzione = Cache::find((new Cache())->getByField('name', 'Ultima esecuzione del cron', Models\Locale::getPredefined()->id)); +$ultima_esecuzione = Cache::find((new Cache())->getByField('title', 'Ultima esecuzione del cron', Models\Locale::getPredefined()->id)); $data = $ultima_esecuzione->content; -$in_esecuzione = Cache::find((new Cache())->getByField('name', 'Cron in esecuzione', Models\Locale::getPredefined()->id)); -$cron_id = Cache::find((new Cache())->getByField('name', 'ID del cron', Models\Locale::getPredefined()->id)); +$in_esecuzione = Cache::find((new Cache())->getByField('title', 'Cron in esecuzione', Models\Locale::getPredefined()->id)); +$cron_id = Cache::find((new Cache())->getByField('title', 'ID del cron', Models\Locale::getPredefined()->id)); -$disattiva = Cache::find((new Cache())->getByField('name', 'Disabilita cron', Models\Locale::getPredefined()->id)); +$disattiva = Cache::find((new Cache())->getByField('title', 'Disabilita cron', Models\Locale::getPredefined()->id)); if ($disattiva->content || (in_array($_SERVER['HTTP_HOST'], ['localhost', '127.0.0.1']) && !$forza_cron_localhost)) { return; } @@ -139,7 +139,7 @@ while (true) { $task->registerNextExecution($inizio_iterazione); $task->save(); - $logger->info($task->getTranslation('name').': data mancante', [ + $logger->info($task->getTranslation('title').': data mancante', [ 'timestamp' => $task->next_execution_at->toDateTimeString(), ]); } @@ -147,7 +147,7 @@ while (true) { // Esecuzione diretta solo nel caso in cui sia prevista if ($task->next_execution_at->copy()->addSeconds(20)->greaterThanOrEqualTo($inizio_iterazione) && $task->next_execution_at->lessThanOrEqualTo($adesso->copy()->addseconds(20))) { // Registrazione dell'esecuzione nei log - $logger->info($task->getTranslation('name').': '.$task->expression); + $logger->info($task->getTranslation('title').': '.$task->expression); try { $task->execute(); } catch (Exception $e) { @@ -158,12 +158,12 @@ while (true) { 'trace' => $e->getTraceAsString(), ]); - $logger->error($task->getTranslation('name').': errore'); + $logger->error($task->getTranslation('title').': errore'); } } // Esecuzione mancata elseif ($task->next_execution_at->lessThan($inizio_iterazione)) { - $logger->warning($task->getTranslation('name').': mancata', [ + $logger->warning($task->getTranslation('title').': mancata', [ 'timestamp' => $task->next_execution_at->toDateTimeString(), ]); diff --git a/editor.php b/editor.php index 3e3b67980..306d40f8e 100755 --- a/editor.php +++ b/editor.php @@ -173,7 +173,7 @@ if (empty($record) || !$has_access) { {( "name": "button", "type": "email", "id_module": "'.$id_module.'", "id_plugin": "'.$id_plugin.'", "id_record": "'.$id_record.'" )}'; - if (Module::find((new Module())->getByField('name', 'Account SMS', Models\Locale::getPredefined()->id))) { + if (Module::find((new Module())->getByField('title', 'Account SMS', Models\Locale::getPredefined()->id))) { echo ' {( "name": "button", "type": "sms", "id_module": "'.$id_module.'", "id_plugin": "'.$id_plugin.'", "id_record": "'.$id_record.'" )}'; } diff --git a/include/colonne.php b/include/colonne.php index a87cd7263..4a12b1704 100644 --- a/include/colonne.php +++ b/include/colonne.php @@ -27,7 +27,7 @@ echo '
'.tr('Trascina le colonne per ordinare la struttura della tabella principale, seleziona e deseleziona le colonne per renderle visibili o meno').'.