Skip to content

Commit a05bf88

Browse files
committed
Fixed the https://surveyjs.answerdesk.io/ticket/details/T2013 - integration rename issue
1 parent 2d2b8e1 commit a05bf88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wwwroot/survey-creator.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ function postEdit() {
2525
setSurveyName(surveyName);
2626
jQuery
2727
.get("/changeName?id=" + surveyId + "&name=" + surveyName, function(data) {
28-
surveyId = data.Id;
28+
surveyId = surveyName;
29+
window.location = "survey-creator.html?id=" + surveyName;
2930
})
3031
.fail(function(error) {
3132
surveyName = oldName;

0 commit comments

Comments
 (0)