Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.7
-
MOODLE_37_STABLE
-
MOODLE_37_STABLE
-
MDL-64906_hideif_mod -
Hide
Choice activity
- Visit a course and turn editing on
- Add a choice activity
- On the settings form:
- Set 'Limit the number of responses' to 'No' (the default)
- Confirm the 'Limit 1', 'Limit 2', etc. fields are not shown
- Set 'Limit the number of responses' to 'Yes'
- Confirm the 'Limit 1', 'Limit 2', etc. fields are shown
- Set 'Publish results' to 'Do not publish results to students' (the default)
- Confirm 'Privacy of results' is not shown
- Set 'Publish results' to each of the other values
- Confirm 'Privacy of results' is shown
Database activity
- Visit a course and turn editing on
- Add a database activity
- On the settings form:
- Set 'Approval required' to 'No' (the default)
- Confirm 'Allow editing of approved entries' is not shown
- Set 'Approval required' to 'Yes'
- Confirm 'Allow editing of approved entries' is shown
Feedback activity
- Visit a course and turn editing on
- Add a feedback activity
- Visit the 'Edit questions' tab
- Add a 'Multiple choice' question
- Set 'Multiple choice type' to 'Multiple choice - single answer' (the default)
- Confirm 'Adjustment' and 'Hide the "Not selected" option' are shown
- Set 'Multiple choice type' to 'Multiple choice - multiple answers'
- Confirm 'Adjustment' is shown
- Confirm 'Hide the "Not selected" option' is not shown
- Set 'Multiple choice type' to 'Multiple choice - single answer allowed (dropdownlist)'
- Confirm 'Adjustment' and 'Hide the "Not selected" option' are not shown
- Save the question
- Add a 'Multiple choice (rated)' question
- Set 'Multiple choice type' to 'Multiple choice - single answer' (the default)
- Confirm 'Adjustment' and 'Hide the "Not selected" option' are shown
- Set 'Multiple choice type' to 'Multiple choice - single answer allowed (dropdownlist)'
- Confirm 'Adjustment' and 'Hide the "Not selected" option' are not shown
- Set 'Dependence item' to 'Choose' (the default)
- Confirm 'Dependence value' is not shown
- Set 'Dependence item' to the name of the other question you created
- Confirm 'Dependence value' is shown
Forum activity
- Enable RSS feeds at: Site admin > Advanced features > Enable RSS feeds
- Enable forum RSS feeds at: Site admin > Plugins > Activity modules > Forum > Enable RSS feeds
- Visit a course and turn editing on
- Add a forum activity
- On the settings form:
- Set 'RSS feed for this activity' to 'None' (the default)
- Confirm 'Number of RSS recent articles' is not shown
- Set 'RSS feed for this activity' to 'Discussions' or 'Posts'
- Confirm 'Number of RSS recent articles' is shown
- Set 'Time period for blocking' to 'Don't block' (the default)
- Confirm 'Post threshold for blocking' and 'Post threshold for warning' are not shown
- Set 'Time period for blocking' to any other value
- Confirm 'Post threshold for blocking' and 'Post threshold for warning' are shown
Glossary activity
- Enable RSS feeds at: Site admin > Advanced features > Enable RSS feeds
- Enable glossary RSS feeds at: Site admin > Plugins > Activity modules > Glossary > Enable RSS feeds
- Visit a course and turn editing on
- Add a glossary activity
- On the settings form:
- Set 'RSS feed for this activity' to 'None' (the default)
- Confirm 'Number of RSS recent articles' is not shown
- Set 'RSS feed for this activity' to 'Concepts with author' or 'Concepts without author'
- Confirm 'Number of RSS recent articles' is shown
- After saving the glossary, click 'Add entry'
- Set 'This entry should be automatically linked' to unchecked (the default)
- Confirm 'This entry is case sensitive' and 'Match whole words only' are not shown
- Set 'This entry should be automatically linked' to checked
- Confirm 'This entry is case sensitive' and 'Match whole words only' are shown
Lesson activity
- Visit a course and turn editing on
- Add a lesson activity
- On the settings form:
- Click 'Show more ...', under 'Availability'
- Set 'Password protected lesson' to 'No' (the default)
- Confirm 'Password' is not shown
- Set 'Password protected lesson' to 'Yes'
- Confirm 'Password' is shown
- Click 'Show more ...', under 'Grade'
- Set 'Re-takes allowed' to 'No' (the default)
- Confirm 'Handling of re-takes' is not shown
- Set 'Re-takes allowed' to 'Yes'
- Confirm 'Handling of re-takes' is shown
External tool activity
- Create a global tool under Site admin > Plugins > Activity modules > External tool > Manage tools
- Call the tool 'Global tool 1'
- The URL can be set to www.example.com + the rest of the settings left blank
- Visit a course and turn editing on
- Add an external tool activity
- On the settings form:
- Click 'Show more ...', under 'General'
- Set 'Preconfigured tool' to 'Automatic, based on tool URL'
- Confirm the following are all shown: 'Tool URL', 'Secure tool URL', 'Consumer key', 'Shared secret', 'Icon URL', 'Secure icon URL'
- Set 'Preconfigured tool' to 'Global tool 1'
- Confirm the following are not shown: 'Tool URL', 'Secure tool URL', 'Consumer key', 'Shared secret', 'Icon URL', 'Secure icon URL'
Page resource
- Add 'Open' (selected by default) and 'In pop-up' to the 'available display options' on Site admin > Plugins > Activity modules > Page
- Visit a course and turn editing on
- Add a page resource
- On the settings form:
- Set 'Display' to 'Open' (the default)
- Confirm 'Pop-up width (in pixels)' and 'Pop-up height (in pixels)' are not shown
- Set 'Display' to 'In pop-up'
- Confirm 'Pop-up width (in pixels)' and 'Pop-up height (in pixels)' are shown
Quiz activity
- Visit a course and turn editing on
- Add a quiz activity
- On the settings form:
- Set 'When time expires' to 'Open attempts are submitted automatically' (the default)
- Confirm 'Submission grace period' is not shown
- Set 'When time expires' to 'There is a grace period ...'
- Confirm 'Submission grace period' is shown
- Set 'Attempts allowed' to '1':
- Confirm 'Grading method', 'Each attempt builds on the last', 'Enforced delay between 1st and 2nd attempts' and 'Enforced delay between later attempts' are not shown
- Set 'Attempts allowed' to '2':
- Confirm 'Grading method', 'Each attempt builds on the last' and 'Enforced delay between 1st and 2nd attempts' are shown
- Confirm 'Enforced delay between later attempts' is not shown
- Set 'Attempts allowed' to '3':
- Confirm 'Grading method', 'Each attempt builds on the last', 'Enforced delay between 1st and 2nd attempts' and 'Enforced delay between later attempts' are shown
- Set 'How questions behave' to 'Deferred feedback' (the default)
- Confirm 'Allow redo within an attempt' is not shown
- Set 'How questions behave' to 'Immediate feedback'
- Confirm 'Allow redo within an attempt' is shown
File resource
- Visit a course and turn editing on
- Add a file resource
- On the settings form:
- Set 'Display' to 'Automatic' (the default)
- Confirm 'Display resource description' is shown
- Confirm 'Pop-up width (in pixels)' and 'Pop-up height (in pixels)' are not shown
- Set 'Display' to 'Force download'
- Confirm 'Display resource description' is not shown
- Confirm 'Pop-up width (in pixels)' and 'Pop-up height (in pixels)' are not shown
- Set 'Display' to 'In pop-up'
- Confirm 'Display resource description' is not shown
- Confirm 'Pop-up width (in pixels)' and 'Pop-up height (in pixels)' are shown
SCORM package
- Visit Site admin > Plugins > Activity modules > SCORM package
- Enable 'allowtypeexternal' and 'allowtypeexternalaicc'
- Visit a course and turn editing on
- Add a SCORM package
- On the settings form:
- Set 'Type' to 'Uploaded package' (the default)
- Confirm 'Package file' is shown
- Confirm 'URL' is not shown
- Set 'Type' to 'External SCORM manifest'
- Confirm 'Package file' is not shown
- Confirm 'URL' is shown
- Set 'Display package' to 'Current window' (the default)
- Confirm 'Width', 'Height', 'Options (prevented by some browsers)' are not shown
- Set 'Display package' to 'New window'
- Confirm 'Width', 'Height', 'Options (prevented by some browsers)' are shown
- Set 'Display course structure in player' to 'To the side' (the default)
- Confirm 'Show navigation' is shown
- Set 'Display course structure in player' to 'Hidden'
- Confirm 'Show navigation' is not shown
- Set 'Display course structure in player' back to 'To the side'
- Set 'Show navigation' to 'Under content' (the default)
- Confirm 'From left' and 'From top' are not shown
- Set 'Show navigation' to 'Floating'
- Confirm 'From left' and 'From top' are shown
- Set 'Grading method' to 'Highest grade' (the default)
- Confirm 'Maximum grade' is shown
- Set 'Grading method' to 'Learning objects'
- Confirm 'Maximum grade' is not shown
- Set 'Number of attempts' to 'Unlimited' (the default)
- Confirm 'Attempts grading' is shown
- Set 'Number of attempts' to '1'
- Confirm 'Attempts grading' is not shown
URL resource
- Visit a course and turn editing on
- Add a URL resource
- On the settings form:
- Set 'Display' to 'Automatic' (the default)
- Confirm 'Display URL description' is shown
- Confirm 'Pop-up width (in pixels)' and 'Pop-up height (in pixels)' are not shown
- Set 'Display' to 'Open'
- Confirm 'Display URL description' is not shown
- Confirm 'Pop-up width (in pixels)' and 'Pop-up height (in pixels)' are not shown
- Set 'Display' to 'In pop-up'
- Confirm 'Display URL description' is not shown
- Confirm 'Pop-up width (in pixels)' and 'Pop-up height (in pixels)' are shown
Workshop module
- Visit a course and turn editing on
- Add a Workshop activity
- On the settings form:
- Set 'File attachment' to 'Enabled' (the default)
- Confirm 'Maximum number of submission attachments', 'Submission attachment allowed file types' and 'Maximum submission attachment size' are shown
- Set 'File attachment' to 'Disabled'
- Confirm 'Maximum number of submission attachments', 'Submission attachment allowed file types' and 'Maximum submission attachment size' are not shown
- Set 'Overall feedback mode' to 'Enabled and optional' (the default)
- Confirm 'Maximum number of overall feedback attachments' is shown
- Set 'Overall feedback mode' to 'Disabled'
- Confirm 'Maximum number of overall feedback attachments' is not shown
- Set 'Overall feedback mode' back to 'Enabled and optional'
- Set 'Maximum number of overall feedback attachments' to '0' (the default)
- Confirm 'Feedback attachment allowed file types' and 'Maximum overall feedback attachment size' are not shown
- Set 'Maximum number of overall feedback attachments' to '1'
- Confirm 'Feedback attachment allowed file types' and 'Maximum overall feedback attachment size' are shown
- Set 'Use examples' to 'Disabled' (the default)
- Confirm 'Mode of examples assessment' is not shown
- Set 'Use examples' to 'Enabled'
- Confirm 'Mode of examples assessment' is shown
- Set 'Submissions deadline' to 'Disabled' (the default)
- Confirm 'Switch to the next phase after submissions deadline' is not shown
- Set 'Submissions deadline' to 'Enabled'
- Confirm 'Switch to the next phase after submissions deadline' is shown
ShowChoice activity Visit a course and turn editing on Add a choice activity On the settings form: Set 'Limit the number of responses' to 'No' (the default) Confirm the 'Limit 1', 'Limit 2', etc. fields are not shown Set 'Limit the number of responses' to 'Yes' Confirm the 'Limit 1', 'Limit 2', etc. fields are shown Set 'Publish results' to 'Do not publish results to students' (the default) Confirm 'Privacy of results' is not shown Set 'Publish results' to each of the other values Confirm 'Privacy of results' is shown Database activity Visit a course and turn editing on Add a database activity On the settings form: Set 'Approval required' to 'No' (the default) Confirm 'Allow editing of approved entries' is not shown Set 'Approval required' to 'Yes' Confirm 'Allow editing of approved entries' is shown Feedback activity Visit a course and turn editing on Add a feedback activity Visit the 'Edit questions' tab Add a 'Multiple choice' question Set 'Multiple choice type' to 'Multiple choice - single answer' (the default) Confirm 'Adjustment' and 'Hide the "Not selected" option' are shown Set 'Multiple choice type' to 'Multiple choice - multiple answers' Confirm 'Adjustment' is shown Confirm 'Hide the "Not selected" option' is not shown Set 'Multiple choice type' to 'Multiple choice - single answer allowed (dropdownlist)' Confirm 'Adjustment' and 'Hide the "Not selected" option' are not shown Save the question Add a 'Multiple choice (rated)' question Set 'Multiple choice type' to 'Multiple choice - single answer' (the default) Confirm 'Adjustment' and 'Hide the "Not selected" option' are shown Set 'Multiple choice type' to 'Multiple choice - single answer allowed (dropdownlist)' Confirm 'Adjustment' and 'Hide the "Not selected" option' are not shown Set 'Dependence item' to 'Choose' (the default) Confirm 'Dependence value' is not shown Set 'Dependence item' to the name of the other question you created Confirm 'Dependence value' is shown Forum activity Enable RSS feeds at: Site admin > Advanced features > Enable RSS feeds Enable forum RSS feeds at: Site admin > Plugins > Activity modules > Forum > Enable RSS feeds Visit a course and turn editing on Add a forum activity On the settings form: Set 'RSS feed for this activity' to 'None' (the default) Confirm 'Number of RSS recent articles' is not shown Set 'RSS feed for this activity' to 'Discussions' or 'Posts' Confirm 'Number of RSS recent articles' is shown Set 'Time period for blocking' to 'Don't block' (the default) Confirm 'Post threshold for blocking' and 'Post threshold for warning' are not shown Set 'Time period for blocking' to any other value Confirm 'Post threshold for blocking' and 'Post threshold for warning' are shown Glossary activity Enable RSS feeds at: Site admin > Advanced features > Enable RSS feeds Enable glossary RSS feeds at: Site admin > Plugins > Activity modules > Glossary > Enable RSS feeds Visit a course and turn editing on Add a glossary activity On the settings form: Set 'RSS feed for this activity' to 'None' (the default) Confirm 'Number of RSS recent articles' is not shown Set 'RSS feed for this activity' to 'Concepts with author' or 'Concepts without author' Confirm 'Number of RSS recent articles' is shown After saving the glossary, click 'Add entry' Set 'This entry should be automatically linked' to unchecked (the default) Confirm 'This entry is case sensitive' and 'Match whole words only' are not shown Set 'This entry should be automatically linked' to checked Confirm 'This entry is case sensitive' and 'Match whole words only' are shown Lesson activity Visit a course and turn editing on Add a lesson activity On the settings form: Click 'Show more ...', under 'Availability' Set 'Password protected lesson' to 'No' (the default) Confirm 'Password' is not shown Set 'Password protected lesson' to 'Yes' Confirm 'Password' is shown Click 'Show more ...', under 'Grade' Set 'Re-takes allowed' to 'No' (the default) Confirm 'Handling of re-takes' is not shown Set 'Re-takes allowed' to 'Yes' Confirm 'Handling of re-takes' is shown External tool activity Create a global tool under Site admin > Plugins > Activity modules > External tool > Manage tools Call the tool 'Global tool 1' The URL can be set to www.example.com + the rest of the settings left blank Visit a course and turn editing on Add an external tool activity On the settings form: Click 'Show more ...', under 'General' Set 'Preconfigured tool' to 'Automatic, based on tool URL' Confirm the following are all shown: 'Tool URL', 'Secure tool URL', 'Consumer key', 'Shared secret', 'Icon URL', 'Secure icon URL' Set 'Preconfigured tool' to 'Global tool 1' Confirm the following are not shown: 'Tool URL', 'Secure tool URL', 'Consumer key', 'Shared secret', 'Icon URL', 'Secure icon URL' Page resource Add 'Open' (selected by default) and 'In pop-up' to the 'available display options' on Site admin > Plugins > Activity modules > Page Visit a course and turn editing on Add a page resource On the settings form: Set 'Display' to 'Open' (the default) Confirm 'Pop-up width (in pixels)' and 'Pop-up height (in pixels)' are not shown Set 'Display' to 'In pop-up' Confirm 'Pop-up width (in pixels)' and 'Pop-up height (in pixels)' are shown Quiz activity Visit a course and turn editing on Add a quiz activity On the settings form: Set 'When time expires' to 'Open attempts are submitted automatically' (the default) Confirm 'Submission grace period' is not shown Set 'When time expires' to 'There is a grace period ...' Confirm 'Submission grace period' is shown Set 'Attempts allowed' to '1': Confirm 'Grading method', 'Each attempt builds on the last', 'Enforced delay between 1st and 2nd attempts' and 'Enforced delay between later attempts' are not shown Set 'Attempts allowed' to '2': Confirm 'Grading method', 'Each attempt builds on the last' and 'Enforced delay between 1st and 2nd attempts' are shown Confirm 'Enforced delay between later attempts' is not shown Set 'Attempts allowed' to '3': Confirm 'Grading method', 'Each attempt builds on the last', 'Enforced delay between 1st and 2nd attempts' and 'Enforced delay between later attempts' are shown Set 'How questions behave' to 'Deferred feedback' (the default) Confirm 'Allow redo within an attempt' is not shown Set 'How questions behave' to 'Immediate feedback' Confirm 'Allow redo within an attempt' is shown File resource Visit a course and turn editing on Add a file resource On the settings form: Set 'Display' to 'Automatic' (the default) Confirm 'Display resource description' is shown Confirm 'Pop-up width (in pixels)' and 'Pop-up height (in pixels)' are not shown Set 'Display' to 'Force download' Confirm 'Display resource description' is not shown Confirm 'Pop-up width (in pixels)' and 'Pop-up height (in pixels)' are not shown Set 'Display' to 'In pop-up' Confirm 'Display resource description' is not shown Confirm 'Pop-up width (in pixels)' and 'Pop-up height (in pixels)' are shown SCORM package Visit Site admin > Plugins > Activity modules > SCORM package Enable 'allowtypeexternal' and 'allowtypeexternalaicc' Visit a course and turn editing on Add a SCORM package On the settings form: Set 'Type' to 'Uploaded package' (the default) Confirm 'Package file' is shown Confirm 'URL' is not shown Set 'Type' to 'External SCORM manifest' Confirm 'Package file' is not shown Confirm 'URL' is shown Set 'Display package' to 'Current window' (the default) Confirm 'Width', 'Height', 'Options (prevented by some browsers)' are not shown Set 'Display package' to 'New window' Confirm 'Width', 'Height', 'Options (prevented by some browsers)' are shown Set 'Display course structure in player' to 'To the side' (the default) Confirm 'Show navigation' is shown Set 'Display course structure in player' to 'Hidden' Confirm 'Show navigation' is not shown Set 'Display course structure in player' back to 'To the side' Set 'Show navigation' to 'Under content' (the default) Confirm 'From left' and 'From top' are not shown Set 'Show navigation' to 'Floating' Confirm 'From left' and 'From top' are shown Set 'Grading method' to 'Highest grade' (the default) Confirm 'Maximum grade' is shown Set 'Grading method' to 'Learning objects' Confirm 'Maximum grade' is not shown Set 'Number of attempts' to 'Unlimited' (the default) Confirm 'Attempts grading' is shown Set 'Number of attempts' to '1' Confirm 'Attempts grading' is not shown URL resource Visit a course and turn editing on Add a URL resource On the settings form: Set 'Display' to 'Automatic' (the default) Confirm 'Display URL description' is shown Confirm 'Pop-up width (in pixels)' and 'Pop-up height (in pixels)' are not shown Set 'Display' to 'Open' Confirm 'Display URL description' is not shown Confirm 'Pop-up width (in pixels)' and 'Pop-up height (in pixels)' are not shown Set 'Display' to 'In pop-up' Confirm 'Display URL description' is not shown Confirm 'Pop-up width (in pixels)' and 'Pop-up height (in pixels)' are shown Workshop module Visit a course and turn editing on Add a Workshop activity On the settings form: Set 'File attachment' to 'Enabled' (the default) Confirm 'Maximum number of submission attachments', 'Submission attachment allowed file types' and 'Maximum submission attachment size' are shown Set 'File attachment' to 'Disabled' Confirm 'Maximum number of submission attachments', 'Submission attachment allowed file types' and 'Maximum submission attachment size' are not shown Set 'Overall feedback mode' to 'Enabled and optional' (the default) Confirm 'Maximum number of overall feedback attachments' is shown Set 'Overall feedback mode' to 'Disabled' Confirm 'Maximum number of overall feedback attachments' is not shown Set 'Overall feedback mode' back to 'Enabled and optional' Set 'Maximum number of overall feedback attachments' to '0' (the default) Confirm 'Feedback attachment allowed file types' and 'Maximum overall feedback attachment size' are not shown Set 'Maximum number of overall feedback attachments' to '1' Confirm 'Feedback attachment allowed file types' and 'Maximum overall feedback attachment size' are shown Set 'Use examples' to 'Disabled' (the default) Confirm 'Mode of examples assessment' is not shown Set 'Use examples' to 'Enabled' Confirm 'Mode of examples assessment' is shown Set 'Submissions deadline' to 'Disabled' (the default) Confirm 'Switch to the next phase after submissions deadline' is not shown Set 'Submissions deadline' to 'Enabled' Confirm 'Switch to the next phase after submissions deadline' is shown
Description
Review all uses of disabledIf in the mod/ directory and switch the appropriate ones to use hideIf instead.
Screenshots (before and after) of all affected forms can be found in: mod - hideif.pdf
Attachments
- MDL-64906.jpg
- 47 kB
- MDL-64906 (2).jpg
- 38 kB
- MDL-64906 (3).jpg
- 42 kB
- MDL-64906 (4).jpg
- 37 kB
- MDL-64906 (5).jpg
- 56 kB
- MDL-64906 (6).jpg
- 16 kB
- MDL-64906 (7).jpg
- 56 kB
- MDL-64906 (8).jpg
- 56 kB
- mod - hideif.pdf
- 1.82 MB
Issue Links
- caused a regression
-
MDL-67163 MDL-64906 disabledIf -> hideIf made the Quiz settings form more confusing. Should be reverted
-
- Closed
-