We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20dabe6 commit a8d5a7cCopy full SHA for a8d5a7c
main/survey/survey.lib.php
@@ -58,7 +58,7 @@ public static function generate_unique_code($code)
58
*/
59
public static function checkUniqueCode($surveyCode)
60
{
61
- if (empty($courseCode)) {
+ if (empty($surveyCode)) {
62
return false;
63
}
64
$courseId = api_get_course_int_id();
tests/behat/features/toolSurvey.feature
@@ -51,6 +51,7 @@ Feature: Survey tool
51
Scenario: Duplicate survey
52
Given I am on "/main/survey/survey_list.php?cidReq=TEMP"
53
And I follow "Duplicate survey"
54
+ And I press "Copy survey"
55
Then I should see "Survey copied"
56
And I should see "Survey 1 Copy"
57
0 commit comments