Merge remote-tracking branch 'origin/1.11.x' into 1.11.x

pull/5903/head
Angel Fernando Quiroz Campos 1 year ago
commit 288db4b237
No known key found for this signature in database
GPG Key ID: B284841AE3E562CD
  1. 1
      documentation/changelog.html
  2. 4
      main/inc/lib/api.lib.php
  3. 2
      main/survey/survey.lib.php
  4. 6
      tests/behat/features/toolExercise.feature
  5. 1
      tests/behat/features/toolSurvey.feature

@ -216,6 +216,7 @@
<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> <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>
<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> <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>
<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> <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>
<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>
</ul> </ul>
<h3>Improvements (minor features) and debug</h3> <h3>Improvements (minor features) and debug</h3>
In reverse chronological order... In reverse chronological order...

@ -917,7 +917,7 @@ function api_get_path($path = '', $configuration = [])
// Initialization of a table that contains common-purpose paths. // Initialization of a table that contains common-purpose paths.
$paths[$root_web][REL_PATH] = $root_rel; $paths[$root_web][REL_PATH] = $root_rel;
$paths[$root_web][REL_COURSE_PATH] = $root_rel.$course_folder; $paths[$root_web][REL_COURSE_PATH] = $root_rel.$course_folder;
$paths[$root_web][REL_CODE_PATH] = $root_rel.$code_folder; $paths[$root_web][REL_CODE_PATH] = $root_rel.preg_replace('#^/#', '', $code_folder);
$paths[$root_web][REL_DEFAULT_COURSE_DOCUMENT_PATH] = $paths[$root_web][REL_PATH].'main/default_course_document/'; $paths[$root_web][REL_DEFAULT_COURSE_DOCUMENT_PATH] = $paths[$root_web][REL_PATH].'main/default_course_document/';
$paths[$root_web][WEB_PATH] = $slashed_root_web; $paths[$root_web][WEB_PATH] = $slashed_root_web;
@ -941,7 +941,7 @@ function api_get_path($path = '', $configuration = [])
$paths[$root_web][WEB_HOME_PATH] = $paths[$root_web][WEB_PATH].$paths[$root_web][REL_HOME_PATH]; $paths[$root_web][WEB_HOME_PATH] = $paths[$root_web][WEB_PATH].$paths[$root_web][REL_HOME_PATH];
$paths[$root_web][SYS_PATH] = $root_sys; $paths[$root_web][SYS_PATH] = $root_sys;
$paths[$root_web][SYS_CODE_PATH] = $root_sys.$code_folder; $paths[$root_web][SYS_CODE_PATH] = $root_sys.preg_replace('#^/#', '', $code_folder);
$paths[$root_web][SYS_TEST_PATH] = $paths[$root_web][SYS_PATH].$paths[$root_web][SYS_TEST_PATH]; $paths[$root_web][SYS_TEST_PATH] = $paths[$root_web][SYS_PATH].$paths[$root_web][SYS_TEST_PATH];
$paths[$root_web][SYS_TEMPLATE_PATH] = $paths[$root_web][SYS_CODE_PATH].$paths[$root_web][SYS_TEMPLATE_PATH]; $paths[$root_web][SYS_TEMPLATE_PATH] = $paths[$root_web][SYS_CODE_PATH].$paths[$root_web][SYS_TEMPLATE_PATH];
$paths[$root_web][SYS_PUBLIC_PATH] = $paths[$root_web][SYS_PATH].$paths[$root_web][SYS_PUBLIC_PATH]; $paths[$root_web][SYS_PUBLIC_PATH] = $paths[$root_web][SYS_PATH].$paths[$root_web][SYS_PUBLIC_PATH];

@ -58,7 +58,7 @@ class SurveyManager
*/ */
public static function checkUniqueCode($surveyCode) public static function checkUniqueCode($surveyCode)
{ {
if (empty($courseCode)) { if (empty($surveyCode)) {
return false; return false;
} }
$courseId = api_get_course_int_id(); $courseId = api_get_course_int_id();

@ -106,6 +106,7 @@ Feature: Exercise tool
And I fill in ckeditor field "option[2]" with "Option B" And I fill in ckeditor field "option[2]" with "Option B"
And I fill in select bootstrap static input "#matches_2" select "2" And I fill in select bootstrap static input "#matches_2" select "2"
And I press "submitQuestion" And I press "submitQuestion"
And wait for the page to be loaded
Then I should see "Item added" Then I should see "Item added"
Scenario: Add question "Open" to exercise created "Exercise 1" Scenario: Add question "Open" to exercise created "Exercise 1"
@ -128,6 +129,7 @@ Feature: Exercise tool
| questionName | Oral expression question | | questionName | Oral expression question |
| weighting | 10 | | weighting | 10 |
And I press "submitQuestion" And I press "submitQuestion"
And wait for the page to be loaded
Then I should see "Item added" Then I should see "Item added"
Scenario: Add question "Exact answers combination" to exercise created "Exercise 1" Scenario: Add question "Exact answers combination" to exercise created "Exercise 1"
@ -206,6 +208,7 @@ Feature: Exercise tool
Then I fill in ckeditor field "comment[1]" with "Comment true" Then I fill in ckeditor field "comment[1]" with "Comment true"
Then I fill in ckeditor field "comment[2]" with "Comment false" Then I fill in ckeditor field "comment[2]" with "Comment false"
And I press "submitQuestion" And I press "submitQuestion"
And wait for the page to be loaded
Then I should see "Item added" Then I should see "Item added"
Scenario: Add question "Global multiple answer" to exercise created "Exercise 1" Scenario: Add question "Global multiple answer" to exercise created "Exercise 1"
@ -353,7 +356,8 @@ Feature: Exercise tool
And I press "next" And I press "next"
Then I should see "Update successful" Then I should see "Update successful"
Then I follow "Multiple registration" Then I follow "Multiple registration"
Then I select "Costea Andrea (acostea)" from "nosessionUsersList[]" Then wait for the page to be loaded
Then I select "Andrea Costea (acostea)" from "nosessionUsersList[]"
And I press "add_user" And I press "add_user"
And I press "next" And I press "next"
Then I should see "Update successful" Then I should see "Update successful"

@ -51,6 +51,7 @@ Feature: Survey tool
Scenario: Duplicate survey Scenario: Duplicate survey
Given I am on "/main/survey/survey_list.php?cidReq=TEMP" Given I am on "/main/survey/survey_list.php?cidReq=TEMP"
And I follow "Duplicate survey" And I follow "Duplicate survey"
And I press "Copy survey"
Then I should see "Survey copied" Then I should see "Survey copied"
And I should see "Survey 1 Copy" And I should see "Survey 1 Copy"

Loading…
Cancel
Save