← Back to team overview

mahara-contributors team mailing list archive

[Bug 1756631] [NEW] Setting up group when user is in 2 institutions and not site admin brings error

 

Public bug reported:

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.

** Affects: mahara
     Importance: High
         Status: Confirmed

** Affects: mahara/18.04
     Importance: High
         Status: Confirmed

** Affects: mahara/18.10
     Importance: High
         Status: Confirmed

** Also affects: mahara/18.10
   Importance: Undecided
       Status: New

** Also affects: mahara/18.04
   Importance: High
       Status: Confirmed

** Changed in: mahara/18.10
       Status: New => Confirmed

** Changed in: mahara/18.10
   Importance: Undecided => High

** Changed in: mahara/18.04
    Milestone: None => 18.04.0

** Changed in: mahara/18.10
    Milestone: None => 18.10.0

** Description changed:

  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
+     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.

-- 
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:
  Confirmed
Status in Mahara 18.04 series:
  Confirmed
Status in Mahara 18.10 series:
  Confirmed

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


Follow ups