After discussing this with hugh, I've concluded that this is behaving as
per what is desccribed in the manual:

http://manual.mahara.org/en/1.6/site_admin/groups.html#update-group-
members-by-csv

"If you manually added users to a group whose members you want to update
via CSV file, these users will be removed from that group when you
update the group membership and do not have them listed in the CSV file.
Thus, be careful once you have added users manually."

So what's happening with the example provided is that because the
original admin hasn't been listed in the csv, it's being removed, and
hence the group would otherwise have no admin and this would make it
broken, so it doesn't let it happen.

** Changed in: mahara
       Status: Confirmed => Invalid

** Changed in: mahara
    Milestone: 1.6.0 => None

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/1055859

Title:
  Warning 'Undefined index: editwindowstart' when adding groups by CSV

Status in Mahara ePortfolio:
  Invalid

Bug description:
  Version: master
  Platform: all
  Browser: all

  Warning on the page /admin/groups/uploadcsv.php after click 'Add
  groups by CSV'

  The content of CSV file to upload:
  shortname,displayname,roles
  "g01","Group 01","standard"
  "g02","Group 02","standard"

  Warning:
  [WAR] 71 (lib/group.php:445) Undefined index: editwindowstart
  Call stack (most recent first):

      log_message("Undefined index: editwindowstart", 8, true, true, 
"/home/sonn/code/mahara/htdocs/lib/group.php", 445) at 
/home/sonn/code/mahara/htdocs/lib/errors.php:446
      error(8, "Undefined index: editwindowstart", 
"/home/sonn/code/mahara/htdocs/lib/group.php", 445, array(size 3)) at 
/home/sonn/code/mahara/htdocs/lib/group.php:445
      group_create(array(size 5)) at 
/home/sonn/code/mahara/htdocs/admin/groups/uploadcsv.php:298
      uploadcsv_submit(object(Pieform), array(size 5)) at Unknown:0
      call_user_func_array("uploadcsv_submit", array(size 2)) at 
/home/sonn/code/mahara/htdocs/lib/pieforms/pieform.php:514
      Pieform->__construct(array(size 2)) at 
/home/sonn/code/mahara/htdocs/lib/pieforms/pieform.php:161
      Pieform::process(array(size 2)) at 
/home/sonn/code/mahara/htdocs/lib/pieforms/pieform.php:71
      pieform(array(size 2)) at 
/home/sonn/code/mahara/htdocs/admin/groups/uploadcsv.php:362

  [WAR] 71 (lib/group.php:446) Undefined index: editwindowend
  Call stack (most recent first):

      log_message("Undefined index: editwindowend", 8, true, true, 
"/home/sonn/code/mahara/htdocs/lib/group.php", 446) at 
/home/sonn/code/mahara/htdocs/lib/errors.php:446
      error(8, "Undefined index: editwindowend", 
"/home/sonn/code/mahara/htdocs/lib/group.php", 446, array(size 3)) at 
/home/sonn/code/mahara/htdocs/lib/group.php:446
      group_create(array(size 5)) at 
/home/sonn/code/mahara/htdocs/admin/groups/uploadcsv.php:298
      uploadcsv_submit(object(Pieform), array(size 5)) at Unknown:0
      call_user_func_array("uploadcsv_submit", array(size 2)) at 
/home/sonn/code/mahara/htdocs/lib/pieforms/pieform.php:514
      Pieform->__construct(array(size 2)) at 
/home/sonn/code/mahara/htdocs/lib/pieforms/pieform.php:161
      Pieform::process(array(size 2)) at 
/home/sonn/code/mahara/htdocs/lib/pieforms/pieform.php:71
      pieform(array(size 2)) at 
/home/sonn/code/mahara/htdocs/admin/groups/uploadcsv.php:362

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1055859/+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

Reply via email to