Skip to content

Commit

Permalink
Fixed issue #16677: Group relevance condition dissapears after import…
Browse files Browse the repository at this point in the history
…ing group (#1854)

Co-authored-by: encuestabizdevgit <devgit@encuesta.biz>
  • Loading branch information
gabrieljenik and encuestabizdevgit committed Apr 26, 2021
1 parent 63f0657 commit 50ae4b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/admin/import_helper.php
Expand Up @@ -88,7 +88,6 @@ function XMLImportGroup($sFullFilePath, $iNewSID, $bTranslateLinksFields)
$aDataL10n['group_name'] = $insertdata['group_name'];
$aDataL10n['description'] = $insertdata['description'];
$aDataL10n['language'] = $insertdata['language'];
$aDataL10n['grelevance'] = $insertdata['grelevance'];
unset($insertdata['group_name']);
unset($insertdata['description']);
unset($insertdata['language']);
Expand All @@ -98,6 +97,7 @@ function XMLImportGroup($sFullFilePath, $iNewSID, $bTranslateLinksFields)
$questionGroup->sid = $insertdata['sid'];
$questionGroup->group_order = $insertdata['group_order'];
$questionGroup->randomization_group = $insertdata['randomization_group'];
$questionGroup->grelevance = $insertdata['grelevance'];
if (!$questionGroup->save()) {
safeDie(gT("Error") . ": Failed to insert data [3]<br />");
}
Expand Down

0 comments on commit 50ae4b8

Please sign in to comment.