Skip to content

Commit

Permalink
Fixed issue #16204: Arrays (all types) not displayed correctly during…
Browse files Browse the repository at this point in the history
… survey-taking (mobile phone) (#1473)

* Fixed issue #16204: Arrays (all types) not displayed correctly during survey-taking (mobile phone)

Created a new DB migration for adding missing noTablesOnMobile.css to vanilla and bootswatch configs

* Fixed issue #16204: Arrays (all types) not displayed correctly during survey-taking (mobile phone)

Fixed files being associated. Now in sync with config.xml
  • Loading branch information
gabrieljenik committed Jul 11, 2020
1 parent 6e447fe commit 2180367
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion application/config/version.php
Expand Up @@ -12,7 +12,7 @@
*/

$config['versionnumber'] = '4.3.3';
$config['dbversionnumber'] = 426;
$config['dbversionnumber'] = 427;
$config['buildnumber'] = '';
$config['updatable'] = true;
$config['templateapiversion'] = 3;
Expand Down
25 changes: 25 additions & 0 deletions application/helpers/update/updatedb_helper.php
Expand Up @@ -3084,6 +3084,31 @@ function db_upgrade_all($iOldDBVersion, $bSilent = false)
$oDB->createCommand()->update('{{settings_global}}', array('stg_value' => 426), "stg_name='DBVersion'");
$oTransaction->commit();
}

/**
* Add missing noTablesOnMobile.css to vanilla and bootswatch configs
*/
if ($iOldDBVersion < 427) {
$oTransaction = $oDB->beginTransaction();
// Update vanilla config
$oDB->createCommand()->update(
'{{template_configuration}}',
[
'files_css' => '{"add":["css/base.css","css/theme.css","css/custom.css","css/noTablesOnMobile.css"]}',
],
"template_name = 'vanilla' AND files_css != 'inherit'"
);
// Update bootswatch config
$oDB->createCommand()->update(
'{{template_configuration}}',
[
'files_css' => '{"add":["css/base.css","css/theme.css","css/custom.css","css/noTablesOnMobile.css"]}',
],
"template_name = 'bootswatch' AND files_css != 'inherit'"
);
$oDB->createCommand()->update('{{settings_global}}', array('stg_value' => 427), "stg_name='DBVersion'");
$oTransaction->commit();
}
} catch (Exception $e) {
Yii::app()->setConfig('Updating', false);
$oTransaction->rollback();
Expand Down

0 comments on commit 2180367

Please sign in to comment.