[Mahara-contributors] [Bug 1756631] A change has been merged

2018-03-20 Thread Mahara Bot
Reviewed:  https://reviews.mahara.org/8671
Committed: 
https://git.mahara.org/mahara/mahara/commit/b78ce5707c78fc0c6bdc1c1f1d1c740e1325e67c
Submitter: Robert Lyon (robe...@catalyst.net.nz)
Branch:18.04_STABLE

commit b78ce5707c78fc0c6bdc1c1f1d1c740e1325e67c
Author: Robert Lyon 
Date:   Mon Mar 19 14:06:13 2018 +1300

Bug 1756631: Create group with relevant default institution set

If the user is in one or more true institutions they need the default
option set as that and not 'mahara'

behatnotneeded

Change-Id: If295f76c3dac0c1ae5d3dd1ec2346511b0645150
Signed-off-by: Robert Lyon 
(cherry picked from commit cdea3ba4a4ff2d09d3d7f12e8c687fbb8917ed9f)

-- 
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/1756631

Title:
  Setting up group when user is in 2 institutions and not site admin
  brings error

Status in Mahara:
  Fix Committed
Status in Mahara 18.04 series:
  Fix Committed
Status in Mahara 18.10 series:
  Fix Committed

Bug description:
  master (18.04RC1)

  When user is in two institutions but not the site admin, the following
  error message is displayed when she wants to set up a group:

  [WAR] 3e (lib/pieforms/pieform.php:1343) Invalid value for select 
"institution"
  Call stack (most recent first):

  log_message(string(size 38), integer, true, true, string(size 58), 
integer) at /home/kristina/code/mahara/htdocs/lib/errors.php:521
  error(integer, string(size 38), string(size 58), integer, array(size 2)) 
at Unknown:0
  trigger_error(string(size 38), integer) at 
/home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:1343
  Pieform::info(string(size 38)) at 
/home/kristina/code/mahara/htdocs/lib/pieforms/pieform/elements/select.php:151
  pieform_element_select(object(Pieform), array(size 10)) at 
/home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:1509
  Pieform->build_element_html(array(size 10)) at 
/home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:725
  Pieform->build() at 
/home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:169
  Pieform::process(array(size 4)) at 
/home/kristina/code/mahara/htdocs/lib/mahara.php:5077
  pieform(array(size 4)) at 
/home/kristina/code/mahara/htdocs/group/edit.php:424

  There is no error message when the user is in only one institution.

  To replicate:

  1. Make a user a member in 2 or more institutions.
  2. Go to Main menu -> Groups -> My groups.
  3. Click the "Create group" button.
  Expected result: No error message.
  Actual result: Above error message is displayed.

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

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1756631] A change has been merged

2018-03-20 Thread Mahara Bot
Reviewed:  https://reviews.mahara.org/8658
Committed: 
https://git.mahara.org/mahara/mahara/commit/cdea3ba4a4ff2d09d3d7f12e8c687fbb8917ed9f
Submitter: Robert Lyon (robe...@catalyst.net.nz)
Branch:master

commit cdea3ba4a4ff2d09d3d7f12e8c687fbb8917ed9f
Author: Robert Lyon 
Date:   Mon Mar 19 14:06:13 2018 +1300

Bug 1756631: Create group with relevant default institution set

If the user is in one or more true institutions they need the default
option set as that and not 'mahara'

behatnotneeded

Change-Id: If295f76c3dac0c1ae5d3dd1ec2346511b0645150
Signed-off-by: Robert Lyon 

-- 
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/1756631

Title:
  Setting up group when user is in 2 institutions and not site admin
  brings error

Status in Mahara:
  Fix Committed
Status in Mahara 18.04 series:
  Fix Committed
Status in Mahara 18.10 series:
  Fix Committed

Bug description:
  master (18.04RC1)

  When user is in two institutions but not the site admin, the following
  error message is displayed when she wants to set up a group:

  [WAR] 3e (lib/pieforms/pieform.php:1343) Invalid value for select 
"institution"
  Call stack (most recent first):

  log_message(string(size 38), integer, true, true, string(size 58), 
integer) at /home/kristina/code/mahara/htdocs/lib/errors.php:521
  error(integer, string(size 38), string(size 58), integer, array(size 2)) 
at Unknown:0
  trigger_error(string(size 38), integer) at 
/home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:1343
  Pieform::info(string(size 38)) at 
/home/kristina/code/mahara/htdocs/lib/pieforms/pieform/elements/select.php:151
  pieform_element_select(object(Pieform), array(size 10)) at 
/home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:1509
  Pieform->build_element_html(array(size 10)) at 
/home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:725
  Pieform->build() at 
/home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:169
  Pieform::process(array(size 4)) at 
/home/kristina/code/mahara/htdocs/lib/mahara.php:5077
  pieform(array(size 4)) at 
/home/kristina/code/mahara/htdocs/group/edit.php:424

  There is no error message when the user is in only one institution.

  To replicate:

  1. Make a user a member in 2 or more institutions.
  2. Go to Main menu -> Groups -> My groups.
  3. Click the "Create group" button.
  Expected result: No error message.
  Actual result: Above error message is displayed.

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

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp