Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #17321: Array question are not split up on mobile devices…
… when using vanilla theme
- Loading branch information
1 parent
8c96fd9
commit aefa616
Showing
3 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace LimeSurvey\Helpers\Update; | ||
|
||
/** | ||
* Add missing noTablesOnMobile.css to vanilla configs again. It was done on 428, but the bug on LsDefaultDataSets remained | ||
* causing problems on new installations. | ||
*/ | ||
class Update_485 extends DatabaseUpdateBase | ||
{ | ||
/** | ||
* @inheritDoc | ||
*/ | ||
public function up() | ||
{ | ||
// Update vanilla config. This only applies to records with the previous "default" value (from LsDefaultDataSets). | ||
$this->db->createCommand()->update( | ||
'{{template_configuration}}', | ||
['files_css' => '{"add":["css/base.css","css/theme.css","css/noTablesOnMobile.css","css/custom.css"]}'], | ||
"template_name = 'vanilla' AND files_css = :default_files_css", | ||
[':default_files_css' => '{"add":["css/ajaxify.css","css/theme.css","css/custom.css"]}'] | ||
); | ||
} | ||
} |