Skip to content
Snippets Groups Projects
Commit 6c6e4ff9 authored by Laurent's avatar Laurent
Browse files

dev #23223 sito_widget_pagination

fix sito migration
parent c589ea54
Branches
Tags
6 merge requests!1553Master,!1502Master,!1501Stable,!1289Master,!1288Dev#23223 sito widget pagination,!1275Dev#23223 sito widget pagination
......@@ -30,7 +30,7 @@ class Class_Migration_SitoConfigMigration {
$cfg_accueil = $profil->getCfgAccueilAsArray();
foreach($cfg_accueil['modules'] as $id => $config) {
if ($config['type_module'] == 'SITO')
if (isset($config['type_module']) && ($config['type_module'] == 'SITO'))
$cfg_accueil['modules'][$id]['preferences'] = $this->migratePreferences($config['preferences']);
}
$profil->setCfgAccueil($cfg_accueil)
......
......@@ -187,7 +187,8 @@ class UpgradeDB_279_Test extends UpgradeDBTestCase {
'type_module' => 'SITO',
'preferences' => ['type_aff' => '3',
'nb_aff' => '2',
'display_order' => '']]]];
'display_order' => '']],
'3' => []]];
$this->query('insert into bib_admin_profil (libelle, cfg_accueil) ' .
'values ("patch_279", ' . Zend_Db_Table::getDefaultAdapter()->quote(serialize($cfg_accueil)) . ') ');
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment