mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #20906
[Bug 1376503] A change has been merged
Reviewed: https://reviews.mahara.org/3734
Committed: http://gitorious.org/mahara/mahara/commit/8f0e0737ba62f9f8e3fd0a703e735717fd98c826
Submitter: Son Nguyen (son.nguyen@xxxxxxxxxxxxxxx)
Branch: master
commit 8f0e0737ba62f9f8e3fd0a703e735717fd98c826
Author: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Date: Thu Oct 2 12:15:44 2014 +1300
Upload groups via csv throws errors (Bug #1376503)
When the role 'course' is used - see notes in bug for testing
Also fixing the problem when updating groups via csv one could set
allowarchives = 1 even if allow submitpages = 0 which shouldn't be
allowed.
Change-Id: I9a2205835b09f73c9c881e8f707845e9032939ed
Signed-off-by: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
--
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/1376503
Title:
Loading groups via csv throwing error Undefined index: allowarchives
Status in Mahara ePortfolio:
Fix Committed
Bug description:
The problem seems to be if you upload groups via a csv file with a
group that contains role = course.
Test with a file similar to the csv file structured
shortname,displayname,roles,editroles
groupone,Group One,standard,admin
grouptwo,Group Two,course,all
groupalpha,Group A,standard,admin
groupthree,Group Three,course,admin
groupbeta,Group B,standard,admin
Also the 'allowarchives' needs to be a valid column type for the csv.
The error stack is:
log_message("Undefined index: allowarchives", 8, true, true, "/home/robertl/htdocs/mahara-testing/mahara/htdocs/...", 437) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/lib/errors.php:439
error(8, "Undefined index: allowarchives", "/home/robertl/htdocs/mahara-testing/mahara/htdocs/...", 437, array(size 3)) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/lib/group.php:437
group_create(array(size 6)) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/admin/groups/uploadcsv.php:288
uploadcsv_submit(object(Pieform), array(size 5)) at Unknown:0
call_user_func_array("uploadcsv_submit", array(size 2)) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/lib/pieforms/pieform.php:527
Pieform->__construct(array(size 2)) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/lib/pieforms/pieform.php:162
Pieform::process(array(size 2)) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/lib/pieforms/pieform.php:71
pieform(array(size 2)) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/admin/groups/uploadcsv.php:352
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1376503/+subscriptions
References