This commit is contained in:
Pek5892 2024-04-05 09:01:55 +02:00
parent 62137f0da7
commit 2d03b1b173
2 changed files with 14 additions and 3 deletions

View File

@ -25,7 +25,7 @@ switch (filter('op')) {
case 'add':
$adapter = new FileAdapter();
$adapter->setTranslation('name', post('name'));
$adapter->name = post('name');
$adapter->class = '\\Modules\\FileAdapters\\Adapters\\'.post('class');
$adapter->save();
@ -37,7 +37,7 @@ switch (filter('op')) {
break;
case 'update':
$adapter->setTranslation('name', post('name'));
$adapter->name = post('name');
$adapter->class = '\\Modules\\FileAdapters\\Adapters\\'.post('class');
$adapter->options = post('options');
$adapter->is_default = post('is_default');

View File

@ -119,3 +119,14 @@ WHERE `zz_views`.`id` IN (
-- Sposto impostazione sotto sezione Aggiornamenti
UPDATE `zz_settings` SET `sezione` = 'Aggiornamenti' WHERE `zz_settings`.`nome` = 'Abilita canale pre-release per aggiornamenti';
-- Allineamento vista Adattatori di archiviazione
UPDATE `zz_modules` SET `options` = "
SELECT
|select|
FROM
zz_storage_adapters
WHERE
1=1 AND `deleted_at` IS NULL
HAVING
2=2" WHERE `zz_modules`.`id` = (SELECT `id_record` FROM `zz_modules_lang` WHERE `name` = 'Adattatori di archiviazione' LIMIT 1);