Skip to content

Commit

Permalink
Fixed issue #13021: Tutorial - Click on the previous button (the side…
Browse files Browse the repository at this point in the history
…bar)
  • Loading branch information
lacrioque committed Dec 19, 2017
1 parent 4f4e78c commit d72a949
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion application/config/version.php
Expand Up @@ -14,7 +14,7 @@

$config['versionnumber'] = '3.0.0-RC.3'; //The current version of this branch
$config['masterversion'] = '2.67.3'; //The current masters version merged into this branch
$config['dbversionnumber'] = 334;
$config['dbversionnumber'] = 335;
$config['buildnumber'] = '';
$config['updatable'] = true;
$config['assetsversionnumber'] = '3020';
Expand Down
18 changes: 18 additions & 0 deletions application/helpers/update/updatedb_helper.php
Expand Up @@ -776,6 +776,24 @@ function db_upgrade_all($iOldDBVersion, $bSilent = false)
$oTransaction->commit();
}

if ($iOldDBVersion < 335) {
$oTransaction = $oDB->beginTransaction();
$oDB->createCommand()->update( '{{tutorial_entries}}', [
'settings' => json_encode(array(
'path' => ['/admin/survey/sa/view', ['surveyid' => '[0-9]{4,25}']],
'element' => '#sidebar',
'placement' => 'right',
'redirect' => false,
'prev' => '-1',
'onShow' => "(function(tour){
return Promise.resolve(tour);
})"
))
], 'teid=9');
$oDB->createCommand()->update('{{settings_global}}', array('stg_value'=>335), "stg_name='DBVersion'");
$oTransaction->commit();
}

} catch (Exception $e) {
Yii::app()->setConfig('Updating', false);
$oTransaction->rollback();
Expand Down
1 change: 1 addition & 0 deletions installer/create-database.php
Expand Up @@ -989,6 +989,7 @@ function createDatabase($oDB){
'element' => '#sidebar',
'placement' => 'right',
'redirect' => false,
'prev' => '-1',
'onShow' => "(function(tour){
return Promise.resolve(tour);
})"
Expand Down

0 comments on commit d72a949

Please sign in to comment.