Skip to content

Commit

Permalink
Fixed issue #17902: Question theme error: Missing metadata (Type: M) (#…
Browse files Browse the repository at this point in the history
…2317)

Co-authored-by: encuestabizdevgit <devgit@encuesta.biz>
Co-authored-by: Olle Härstedt <olleharstedt@yahoo.com>
  • Loading branch information
3 people committed Apr 14, 2022
1 parent cd03fc7 commit c87e94b
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/config/version.php
Expand Up @@ -12,7 +12,7 @@
*/

$config['versionnumber'] = '5.3.9';
$config['dbversionnumber'] = 485;
$config['dbversionnumber'] = 486;
$config['buildnumber'] = '';
$config['updatable'] = true;
$config['templateapiversion'] = 3;
Expand Down
4 changes: 2 additions & 2 deletions application/core/LsDefaultDataSets.php
Expand Up @@ -2685,8 +2685,8 @@ public static function getBaseQuestionThemeEntries()
array(
"name" => "bootstrap_buttons_multi",
"visible" => "Y",
"xml_path" => "themes/question/bootstrap_buttons/survey/questions/answer/multiplechoice",
"image_path" => "/themes/question/bootstrap_buttons/survey/questions/answer/multiplechoice/assets/bootstrap_buttons_multiplechoice.png",
"xml_path" => "themes/question/bootstrap_buttons_multi/survey/questions/answer/multiplechoice",
"image_path" => "/themes/question/bootstrap_buttons_multi/survey/questions/answer/multiplechoice/assets/bootstrap_buttons_multiplechoice.png",
"title" => "Bootstrap buttons",
"creation_date" => "1970-01-01 01:00:00",
"author" => "LimeSurvey GmbH",
Expand Down
20 changes: 20 additions & 0 deletions application/helpers/update/updates/Update_486.php
@@ -0,0 +1,20 @@
<?php

namespace LimeSurvey\Helpers\Update;

use LsDefaultDataSets;

class Update_486 extends DatabaseUpdateBase
{
public function up()
{
$this->db->createCommand()->update(
"{{question_themes}}",
[
'xml_path' => 'themes/question/bootstrap_buttons_multi/survey/questions/answer/multiplechoice',
'image_path' => '/themes/question/bootstrap_buttons_multi/survey/questions/answer/multiplechoice/assets/bootstrap_buttons_multiplechoice.png',
],
"name='bootstrap_buttons_multi'"
);
}
}

0 comments on commit c87e94b

Please sign in to comment.