Skip to content

Commit

Permalink
Fixed issue #13638: Panel with user surveys doesn't load
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Apr 27, 2018
1 parent a2fcabb commit 1dde1f5
Show file tree
Hide file tree
Showing 7 changed files with 3,037 additions and 6 deletions.
2 changes: 1 addition & 1 deletion application/models/Participant.php
Expand Up @@ -1690,7 +1690,7 @@ private function writeParticipantsToTokenTable(
'lastname' => $participant['lastname'],
'email' => $participant['email'],
'emailstatus' => 'OK',
'language' => $participant['language']
'language' => isset($participant['language']) ? $participant['language'] : App()->language
);

Yii::app()->db
Expand Down
2 changes: 1 addition & 1 deletion application/models/SurveyLink.php
Expand Up @@ -67,7 +67,7 @@ public function relations()
// class name for the relations automatically generated below.
return array(
'participant' => array(self::HAS_ONE, 'Particiant', 'participant_id'),
'survey' => array(self::HAS_ONE, 'Survey', array('survey_id'=>'sid'))
'survey' => array(self::HAS_ONE, 'Survey', array('sid'=>'survey_id'))
);
}

Expand Down
2 changes: 1 addition & 1 deletion assets/packages/lslog/build/lslog.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions assets/packages/lslog/gulpfile.js
Expand Up @@ -44,7 +44,7 @@ gulp.task('babel', function (cb) {
[
gulp.src('src/lslog.js'),
babel({
presets: ['es2015']
presets: [['env', {targets: {browsers: "last 2 versions"}}]]
}),
gulp.dest('build/')
],
Expand All @@ -59,7 +59,7 @@ gulp.task('babel:production', function (cb) {
gulp.src('src/lslog.js'),
sourcemaps.init(),
babel({
presets: ['es2015']
presets: [['env', {targets: {browsers: "last 2 versions"}}]]
}),
uglify(),
rename('lslog.min.js'),
Expand Down
16 changes: 16 additions & 0 deletions assets/packages/lslog/package.json
@@ -0,0 +1,16 @@
{
"devDependencies": {
"babel-core": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-es2015": "^6.24.1",
"gulp": "^3.9.1",
"gulp-autoprefixer": "^5.0.0",
"gulp-babel": "^7.0.1",
"gulp-eslint": "^4.0.2",
"gulp-rename": "^1.2.2",
"gulp-sourcemaps": "^2.6.4",
"gulp-uglify": "^3.0.0",
"pump": "^3.0.0",
"run-sequence": "^2.2.1"
}
}

0 comments on commit 1dde1f5

Please sign in to comment.