Moodle

allow teachers to specify certain fields in database activity as required

Details

  • Affected Branches:
    MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_22_STABLE

Description

When creating a database, allow the teacher to specify whether a field must be filled in or not.

Issue Links

Activity

Hide
Laurent Domenech added a comment -

This zip file contains the files that I modified to fix this, as well as entry MDL-6821

Show
Laurent Domenech added a comment - This zip file contains the files that I modified to fix this, as well as entry MDL-6821
Hide
Laurent Domenech added a comment -

This file contains the fixes (for just this issue) made and tested on the latest 1.7.

There is a cosmetic issue with the checkbox itself. It is centered on the Edit Field form. For some fields, it is not a problem, but for the fields with options, it will not be aligned with the other options. Aligning all options requires deeper changes in the code that I didn't feel confortable doing at this stage.

Show
Laurent Domenech added a comment - This file contains the fixes (for just this issue) made and tested on the latest 1.7. There is a cosmetic issue with the checkbox itself. It is centered on the Edit Field form. For some fields, it is not a problem, but for the fields with options, it will not be aligned with the other options. Aligning all options requires deeper changes in the code that I didn't feel confortable doing at this stage.
Hide
Anthony Borrow added a comment -

Adding the ability to set a database activity field as required would be consistent behavior with other places in Moodle where such functionality is common place (user fields, etc.). I think this requires adding a required field to the database. One of the param fields could be used but I would not recommend it as they would be different depending on the field types. Peace - Anthony

Show
Anthony Borrow added a comment - Adding the ability to set a database activity field as required would be consistent behavior with other places in Moodle where such functionality is common place (user fields, etc.). I think this requires adding a required field to the database. One of the param fields could be used but I would not recommend it as they would be different depending on the field types. Peace - Anthony
Hide
Anthony Borrow added a comment -

adding later versions to keep this issue from falling through the cracks

Show
Anthony Borrow added a comment - adding later versions to keep this issue from falling through the cracks
Hide
Sophia N added a comment -

affects 2.0 as well.

Show
Sophia N added a comment - affects 2.0 as well.
Hide
Helen Foster added a comment -

Thanks Sophia, adding the latest Moodle version as an affected version to keep this issue in the spotlight.

Show
Helen Foster added a comment - Thanks Sophia, adding the latest Moodle version as an affected version to keep this issue in the spotlight.

People

Vote (21)
Watch (8)

Dates

  • Created:
    Updated: