← Back to team overview

mahara-contributors team mailing list archive

[Bug 1396565] Re: Error when adding a Group pages bloc onto a group home page

 

Robert fixed it so that you can only add 1 block to the group homepage.
If you upgraded your site from pre 1.10, the upgrade script will look at
the settings of all the group pages blocks that were on the group
homepage and merges their settings.

Therefore, there are a few different test scenarios to test:

1. Fresh Mahara install: You can only add one "Group pages" block to the
group homepage. (also Behat test)

2. Fresh Mahara install: Check that you can't add a second "Group pages"
block to the group pages template page in Administration -> Configure
site -> Pages.

3. Upgrade from Mahara 1.9 to 15.04 master with only one "Group pages" block on the group homepage.
- choose some non-default settings
- have 5 pages shared with the group by another user
- ensure that the chosen settings are still applied after the upgrade
- check that you can only add one "Group pages" block to the group homepage after the upgrade
- after the upgrade, change the "Entries per page" setting to 3 and check that the paginator works.

4. Upgrade from Mahara 1.9 to 15.04 with a minimum of "Group pages" blocks on the group homepage (there are 3 possible combinations that make sense: Yes - No, No - Yes, Yes - Yes) . Set up 3 different groups to test various combinations of the settings and also choose different group types (1 open, 1 controlledallowing submissions, 1 request). Do a 4th test where one block is set to No-No and another to either Yes-No or No-Yes just to check the negative works as well.
- have 5 pages by another user shared with the group and 5 pages submitted to the group if it is a group that allows submissions
- ensure that the chosen settings are merged after the upgrade. Note down which settings result so it can be double-checked that this is the expected behavior.
- check that you can only add one "Group pages" block to the group homepage after the upgrade
- after the upgrade, change the "Entries per page" setting to 3 and check that the paginator works and that all the pages that were displayed before the upgrade still show up after in their respective categories. Also log in as the other user in the group that allowed submissions to also check that you can only see any pages that have been shared with the group but not ones that have been submitted.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1396565

Title:
  Error when adding a Group pages bloc onto a group home page

Status in Mahara ePortfolio:
  In Progress
Status in Mahara 1.10 series:
  Confirmed
Status in Mahara 15.04 series:
  In Progress

Bug description:
  To replicate on Mahara 15.04dev

  1/ Create a group or go to an already create group
  2/ Edit the home page 
  3/ Add the bloc "Group page"

  You get the error : _record_sql found more than one row. If you meant
  to retrieve more than one record, use get_records_*, otherwise check
  your code or database for inconsistencies

  Tried on three different platforms with 15.04dev

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1396565/+subscriptions


References