Skip to content

Commit

Permalink
Fixed issue: Error exporting question group on MSSQL
Browse files Browse the repository at this point in the history
Fixed issue: Incorrect DB Version on install causing an unnecessary update on a fresh installation
  • Loading branch information
c-schmitz committed Oct 3, 2012
1 parent 9bd8a2f commit 5210185
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion application/helpers/export_helper.php
Expand Up @@ -1458,7 +1458,7 @@ function group_export($action, $iSurveyID, $gid)
$xml->writeElement('DBVersion', getGlobalSetting("DBVersion"));
$xml->startElement('languages');

$lresult = Groups::model()->findAllByAttributes(array('gid' => $gid), array('group' => 'language'));
$lresult = Groups::model()->findAllByAttributes(array('gid' => $gid), array('select'=>'language','group' => 'language'));
foreach($lresult as $row)
{
$xml->writeElement('language',$row->language);
Expand Down
2 changes: 1 addition & 1 deletion installer/sql/create-mssql.sql
Expand Up @@ -551,4 +551,4 @@ create index [labels_code_idx] on [prefix_labels] ([code]);
--
-- Version Info
--
INSERT INTO [prefix_settings_global] VALUES ('DBVersion', '162');
INSERT INTO [prefix_settings_global] VALUES ('DBVersion', '163');
2 changes: 1 addition & 1 deletion installer/sql/create-mysql.sql
Expand Up @@ -556,4 +556,4 @@ create index `parent_qid_idx` on `prefix_questions` (`parent_qid`);
--
-- Version Info
--
INSERT INTO `prefix_settings_global` VALUES ('DBVersion', '162');
INSERT INTO `prefix_settings_global` VALUES ('DBVersion', '163');
2 changes: 1 addition & 1 deletion installer/sql/create-pgsql.sql
Expand Up @@ -562,4 +562,4 @@ create index labels_code_idx on prefix_labels (code);
--
-- Version Info
--
INSERT INTO prefix_settings_global VALUES ('DBVersion', '162');
INSERT INTO prefix_settings_global VALUES ('DBVersion', '163');

0 comments on commit 5210185

Please sign in to comment.