Skip to content

Commit 288db4b

Browse files
committed
Merge remote-tracking branch 'origin/1.11.x' into 1.11.x
2 parents ef8f48e + a97d5b7 commit 288db4b

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

documentation/changelog.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ <h4>For developers and sysadmins</h4>
216216
<li>[2024-10-13] (<a href="https://github.com/chamilo/chamilo-lms/commit/5e9f2f0b6c5e7f66eb1a43bb381fb3485e515989">5e9f2f0b</a> - <a href="https://github.com/chamilo/chamilo-lms/issues/4242">GH#4242</a>) Admin: Add configuration setting 'quiz_question_edit_open_advanced_params_by_default' to show questions advanced settings by default</li>
217217
<li>[2024-10-19] (<a href="https://github.com/chamilo/chamilo-lms/commit/c8748f86f8a409cbd1e1a7195bbcf8ff81a28cae">c8748f86</a> - <a href="https://github.com/chamilo/chamilo-lms/issues/5543">GH#5543</a>) Admin: Add configuration setting 'session_visibility_after_end_date_options_configuration' to limit the visible session-visibility options</li>
218218
<li>[2024-10-19] (<a href="https://github.com/chamilo/chamilo-lms/commit/4fb383d07b3f313b9e09ca27eccb6eff3034a57a">4fb383d0</a> - <a href="https://github.com/chamilo/chamilo-lms/issues/5191">GH#5191</a>) Admin: Add configuration setting 'hide_my_progress_tab' to hide the 'My Progress' tab</li>
219+
<li>[2024-10-21] (<a href="https://github.com/chamilo/chamilo-lms/commit/615a5068a112a40f4649da9626e6e6605436708d">615a5068</a>) Internal: Bump PHP version from 7.2 to 7.4 in composer.json</li>
219220
</ul>
220221
<h3>Improvements (minor features) and debug</h3>
221222
In reverse chronological order...

main/inc/lib/api.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ function api_get_path($path = '', $configuration = [])
917917
// Initialization of a table that contains common-purpose paths.
918918
$paths[$root_web][REL_PATH] = $root_rel;
919919
$paths[$root_web][REL_COURSE_PATH] = $root_rel.$course_folder;
920-
$paths[$root_web][REL_CODE_PATH] = $root_rel.$code_folder;
920+
$paths[$root_web][REL_CODE_PATH] = $root_rel.preg_replace('#^/#', '', $code_folder);
921921
$paths[$root_web][REL_DEFAULT_COURSE_DOCUMENT_PATH] = $paths[$root_web][REL_PATH].'main/default_course_document/';
922922

923923
$paths[$root_web][WEB_PATH] = $slashed_root_web;
@@ -941,7 +941,7 @@ function api_get_path($path = '', $configuration = [])
941941
$paths[$root_web][WEB_HOME_PATH] = $paths[$root_web][WEB_PATH].$paths[$root_web][REL_HOME_PATH];
942942

943943
$paths[$root_web][SYS_PATH] = $root_sys;
944-
$paths[$root_web][SYS_CODE_PATH] = $root_sys.$code_folder;
944+
$paths[$root_web][SYS_CODE_PATH] = $root_sys.preg_replace('#^/#', '', $code_folder);
945945
$paths[$root_web][SYS_TEST_PATH] = $paths[$root_web][SYS_PATH].$paths[$root_web][SYS_TEST_PATH];
946946
$paths[$root_web][SYS_TEMPLATE_PATH] = $paths[$root_web][SYS_CODE_PATH].$paths[$root_web][SYS_TEMPLATE_PATH];
947947
$paths[$root_web][SYS_PUBLIC_PATH] = $paths[$root_web][SYS_PATH].$paths[$root_web][SYS_PUBLIC_PATH];

main/survey/survey.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static function generate_unique_code($code)
5858
*/
5959
public static function checkUniqueCode($surveyCode)
6060
{
61-
if (empty($courseCode)) {
61+
if (empty($surveyCode)) {
6262
return false;
6363
}
6464
$courseId = api_get_course_int_id();

tests/behat/features/toolExercise.feature

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ Feature: Exercise tool
106106
And I fill in ckeditor field "option[2]" with "Option B"
107107
And I fill in select bootstrap static input "#matches_2" select "2"
108108
And I press "submitQuestion"
109+
And wait for the page to be loaded
109110
Then I should see "Item added"
110111

111112
Scenario: Add question "Open" to exercise created "Exercise 1"
@@ -128,6 +129,7 @@ Feature: Exercise tool
128129
| questionName | Oral expression question |
129130
| weighting | 10 |
130131
And I press "submitQuestion"
132+
And wait for the page to be loaded
131133
Then I should see "Item added"
132134

133135
Scenario: Add question "Exact answers combination" to exercise created "Exercise 1"
@@ -206,6 +208,7 @@ Feature: Exercise tool
206208
Then I fill in ckeditor field "comment[1]" with "Comment true"
207209
Then I fill in ckeditor field "comment[2]" with "Comment false"
208210
And I press "submitQuestion"
211+
And wait for the page to be loaded
209212
Then I should see "Item added"
210213

211214
Scenario: Add question "Global multiple answer" to exercise created "Exercise 1"
@@ -353,7 +356,8 @@ Feature: Exercise tool
353356
And I press "next"
354357
Then I should see "Update successful"
355358
Then I follow "Multiple registration"
356-
Then I select "Costea Andrea (acostea)" from "nosessionUsersList[]"
359+
Then wait for the page to be loaded
360+
Then I select "Andrea Costea (acostea)" from "nosessionUsersList[]"
357361
And I press "add_user"
358362
And I press "next"
359363
Then I should see "Update successful"

tests/behat/features/toolSurvey.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Feature: Survey tool
5151
Scenario: Duplicate survey
5252
Given I am on "/main/survey/survey_list.php?cidReq=TEMP"
5353
And I follow "Duplicate survey"
54+
And I press "Copy survey"
5455
Then I should see "Survey copied"
5556
And I should see "Survey 1 Copy"
5657

0 commit comments

Comments
 (0)