Skip to content

Commit

Permalink
Small update fix
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jan 14, 2021
1 parent bb7b80f commit bc836cd
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions application/helpers/update/updatedb_helper.php
Expand Up @@ -3243,6 +3243,16 @@ function ($v) {
'load_error' => 0,
'load_error_message' => null
]);
$oDB->createCommand()->update('{{settings_global}}', array('stg_value' => 430), "stg_name='DBVersion'");
$oTransaction->commit();
}

/**
* Re-add question organizer menu entry
*/
if($iOldDBVersion < 431) {
$oTransaction = $oDB->beginTransaction();

$oDB->createCommand()->update(
'{{boxes}}',
array(
Expand Down Expand Up @@ -3356,15 +3366,7 @@ function ($v) {
"name='plugins'"
);

$oDB->createCommand()->update('{{settings_global}}', array('stg_value' => 430), "stg_name='DBVersion'");
$oTransaction->commit();
}

/**
* Re-add question organizer menu entry
*/
if($iOldDBVersion < 431) {
$oTransaction = $oDB->beginTransaction();
$aDefaultSurveyMenuEntries = LsDefaultDataSets::getSurveyMenuEntryData();
foreach($aDefaultSurveyMenuEntries as $aSurveymenuentry) {
if ($aSurveymenuentry['name']=='reorder') {
Expand Down

0 comments on commit bc836cd

Please sign in to comment.