View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
13299Bug reportsConditionspublic2018-02-07 17:06
Reporterjuliang Assigned Toollehar  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version3.1.x 
Summary13299: In Conditions designer, after adding a condition, "Save and close" gives 404 Not found error
Description

Version: git commit 82f6e69566ef654d64ef2abaf4e0ed85c6d50eca

In the Conditions designer, I successfully added a condition for a question. If I then click "Close" (the red button), all goes fine, but if I click "Save and close", I get taken to the URL https://www.MYSERVER.COM/survey/index.php/admin/survey/sa/listquestiongroups/surveyid/282267628488 which then gives a 404 Not found. Survey not found error. The conditions designer page has URL https://www.MYSERVER.COM/survey/index.php/admin/conditions/sa/index/subaction/editconditionsform/surveyid/628488/gid/14/qid/126 and when I click close, I am taken back to the same URL.
So it looks as though the URL has got messed up somehow in the "Save and close" call. With further investigation, if I remove the "282267" from the URL, then I get a very sensible looking page.

The source of the error appears to be line 231 in application/views/admin/survey/Question/questionbar_view.php, which has got the sample survey id 282267 left in the URL by mistake. Removing this "282267" fixes the problem; I can make a GitHub pull request if you would like, but it might be simpler just to delete the six characters!

Steps To Reproduce

As described in the description above

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)git master branch, commit 82f6e69566ef654d64ef2abaf4e0ed85c6d50eca
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmysql 347
Server OS (if known)Linux
Webserver software & version (if known)Apache 2.4.29
PHP Version7.2

Users monitoring this issue

There are no users monitoring this issue.

Activities

ollehar

ollehar

2018-02-06 11:57

administrator   ~46274

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=26361

Related Changesets

LimeSurvey: master 74e99064

2018-02-06 11:57:04

ollehar

Details Diff
Fixed issue 13299: In Conditions designer, after adding a condition, "Save and close" gives 404 Not found error Affected Issues
13299
mod - application/views/admin/survey/Question/questionbar_view.php Diff File

Issue History

Date Modified Username Field Change
2018-02-06 01:56 juliang New Issue
2018-02-06 11:52 ollehar Assigned To => ollehar
2018-02-06 11:52 ollehar Status new => assigned
2018-02-06 11:57 ollehar Changeset attached => LimeSurvey master 74e99064
2018-02-06 11:57 ollehar Note Added: 46274
2018-02-06 11:57 ollehar Resolution open => fixed
2018-02-06 11:59 ollehar Status assigned => resolved
2018-02-07 17:06 ollehar Status resolved => closed