Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.7.2
-
Fix Version/s: 2.7.3
-
Component/s: Conditional activities
-
Testing Instructions:
-
Workaround:
-
Affected Branches:MOODLE_27_STABLE
-
Fixed Branches:MOODLE_27_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-47481-master -
Pull Master Diff URL:
Description
Bug only exists in master.
Reproduction steps
- Ensure 'enableavailability' is turned on for server.
- Go to a course and edit settings for any activity.
- Expand Restrict Access section
- Click the Add button to add a restriction, then click 'User profile' button on the popup.
- Select any profile field in the newly created item, and type a value
- Save changes.
- An error will display
Coding error detected, it must be fixed by a programmer: moodle_database::get_in_or_equal() does not accept empty arrays
|
|
More information about this error
|
|
Debug info:
|
Error code: codingerror
|
Stack trace:
|
line 693 of /lib/dml/moodle_database.php: coding_exception thrown
|
line 453 of /availability/condition/profile/classes/condition.php: call to moodle_database->get_in_or_equal()
|
line 333 of /availability/classes/tree.php: call to availability_profile\condition->filter_user_list()
|
line 612 of /availability/classes/info.php: call to core_availability\tree->filter_user_list()
|
line 109 of /availability/classes/info_module.php: call to core_availability\info->filter_user_list()
|
line 1385 of /mod/assign/locallib.php: call to core_availability\info_module->filter_user_list()
|
line 1430 of /mod/assign/locallib.php: call to assign->list_participants()
|
line 4126 of /mod/assign/locallib.php: call to assign->count_participants()
|
line 549 of /mod/assign/locallib.php: call to assign->view_submission_page()
|
line 53 of /mod/assign/view.php: call to assign->view()
|