Skip to content

Commit

Permalink
Fixed issue #17862: Invalid url in admin (usage of HTTP_HOST) (#2282)
Browse files Browse the repository at this point in the history
Co-authored-by: encuestabizdevgit <devgit@encuesta.biz>
  • Loading branch information
gabrieljenik and encuestabizdevgit committed Apr 28, 2022
1 parent abe8543 commit 9281e80
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion application/views/layouts/sidemenu.php
Expand Up @@ -20,7 +20,7 @@
$getQuestionsUrl = $this->createUrl("/surveyAdministration/getAjaxQuestionGroupArray/", ["surveyid" => $surveyid]);
$getMenuUrl = $this->createUrl("/surveyAdministration/getAjaxMenuArray/", ["surveyid" => $surveyid]);
$createQuestionGroupLink = $this->createUrl('/questionGroupsAdministration/add/' , ["surveyid" => $surveyid]);
$createQuestionLink = "questionAdministration/create/surveyid/".$surveyid;
$createQuestionLink = $this->createUrl('questionAdministration/create/' , ["surveyid" => $surveyid]);
$unlockLockOrganizerUrl = $this->createUrl("admin/user/sa/togglesetting/", ['surveyid' => $surveyid]);

$updateOrderLink = $this->createUrl("questionGroupsAdministration/updateOrder/", ["surveyid" => $surveyid]);
Expand Down

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions assets/packages/adminsidepanel/build/js/adminsidepanel.js

Large diffs are not rendered by default.

Expand Up @@ -64,10 +64,11 @@ export default {
this.active = [];
},
createFullQuestionLink() {
if(LS.reparsedParameters().combined.gid) {
return LS.createUrl(this.createQuestionLink, {gid: LS.reparsedParameters().combined.gid});
if (LS.reparsedParameters().combined.gid) {
return this.createQuestionLink + '&gid=' + LS.reparsedParameters().combined.gid;
} else {
return this.createQuestionLink;
}
return LS.createUrl(this.createQuestionLink, {});
},
questionHasCondition(question) {
return question.relevance !== '1';
Expand Down

0 comments on commit 9281e80

Please sign in to comment.