Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.4, 3.4.4, 3.5.1, 3.6
-
Component/s: Database activity module
-
Testing Instructions:
-
Difficulty:Easy
-
Affected Branches:MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
-
Fixed Branches:MOODLE_34_STABLE, MOODLE_35_STABLE
-
Pull from Repository:
-
Pull 3.5 Branch:
MDL-60114_35_radio-option-choose -
Pull Master Branch:
MDL-60114_master_radio-option-choose -
Pull Master Diff URL:
Description
If you create a Radio button field for your database entries, there is no option "choosedots" anymore. In the past this was the case before resolving the issue --, which sets the html_writer::select parameter explicitely to null.MDL-56725
As a consequence of this, you might not be able to set a filter for the database items, without using one of the options of the radio field.
Example: Database uses a text field for name and a Radio field for gender (m/w). As there is no neutral option for gender, you cannot filter all the persons with name = Smith, despite they are men or women.
Maybe I missed the intention of the change, but we ran in trouble with existing database activity instances on our moodle site, so it might be worth to think about a change?
Possible solution: Replace null with choosedot array like the default parameter in html_writer::select() method.
Replication Steps:
- Create a database activity with a radio field with two options and a text field
- Create two or more entries with same text in text field and different values in radio field
- Try to search for this name
Your are not able to search for all entries with same name, when they have different values in radio field.