Commit 0ec7e289 authored by Robert Lyon's avatar Robert Lyon

Bug 1521767: Allowing new forums to have autosubscribe on by default

Just like for the initial forum created when group is made

Change-Id: Iea18c76931d4edad2f9c0ea7fa096fd4823a960d
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 1be55fe1
......@@ -94,7 +94,7 @@ class PluginInteractionForum extends PluginInteraction {
'type' => 'switchbox',
'title' => get_string('autosubscribeusers', 'interaction.forum'),
'description' => get_string('autosubscribeusersdescription', 'interaction.forum'),
'defaultvalue' => isset($autosubscribe) ? $autosubscribe : false,
'defaultvalue' => isset($autosubscribe) ? $autosubscribe : true,
'help' => true,
),
'weight' => array(
......
......@@ -16,7 +16,7 @@ Scenario: Turning on and off switches in the group forums tab (Bug 1431569)
And I follow "Edit forum"
# There are 2 settings links on the page and it needs to identify which one to follow
And I follow "Forum settings"
# Checking "Automatically subscribe users" swtichbox is on by default
# Checking "Automatically subscribe users" switchbox is on by default
And the "edit_interaction_autosubscribe" checkbox should be checked
# Checking it can be turned off
When I uncheck "edit_interaction_autosubscribe"
......@@ -31,3 +31,13 @@ Scenario: Turning on and off switches in the group forums tab (Bug 1431569)
# Checking it turns back off
And I uncheck "edit_interaction_closetopics"
And I press "Save"
# And I add another forum
And I follow "Forums"
And I follow "New forum"
And I set the following fields to these values:
| Title | Freshwater turtles |
| Description | All about freshwater turtles |
And I follow "Forum settings"
# Checking "Automatically subscribe users" switchbox is on by default
And the "edit_interaction_autosubscribe" checkbox should be checked
And I press "Save"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment