mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #22829
[Bug 1399464] A change has been merged
Reviewed: https://reviews.mahara.org/4063
Committed: http://gitorious.org/mahara/mahara/commit/2649e66000eec9d8e4a0ec9553f0c810b7bcb4cd
Submitter: Son Nguyen (son.nguyen@xxxxxxxxxxxxxxx)
Branch: master
commit 2649e66000eec9d8e4a0ec9553f0c810b7bcb4cd
Author: Son Nguyen <son.nguyen@xxxxxxxxxxxxxxx>
Date: Fri Dec 5 11:37:40 2014 +1300
Fix incorrect calls to record_exists_select()
Bug 1399464: $values param must be an array
Change-Id: Ia865e42641830400fffeb3950f6cbe4fbed7ccbb
Signed-off-by: Son Nguyen <son.nguyen@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/1399464
Title:
SQL error when adding users by CSV
Status in Mahara ePortfolio:
In Progress
Bug description:
Version: master(15.04)
Adding users by CSV causes errors:
[WAR] cf (lib/errors.php:745) Invalid values parameter sent to get_recordset_sql.
Call stack (most recent first):
log_message("Invalid values parameter sent to get_recordset_sql...", 8, true, true) at /home/sonn/code/mahara/master/htdocs/lib/errors.php:95
log_warn("Invalid values parameter sent to get_recordset_sql...") at /home/sonn/code/mahara/master/htdocs/lib/errors.php:745
SQLException->__construct("Invalid values parameter sent to get_recordset_sql...") at /home/sonn/code/mahara/master/htdocs/lib/dml.php:457
get_recordset_sql("SELECT * FROM "mh15_usr" WHERE LOWER(username) = ?", "u01", 0, 1) at /home/sonn/code/mahara/master/htdocs/lib/dml.php:211
record_exists_sql("SELECT * FROM "mh15_usr" WHERE LOWER(username) = ?", "u01") at /home/sonn/code/mahara/master/htdocs/lib/dml.php:197
record_exists_select("usr", "LOWER(username) = ?", "u01") at /home/sonn/code/mahara/master/htdocs/admin/users/uploadcsv.php:312
uploadcsv_validate(object(Pieform), array(size 19)) at Unknown:0
call_user_func_array("uploadcsv_validate", array(size 2)) at /home/sonn/code/mahara/master/htdocs/lib/pieforms/pieform.php:1382
Pieform->validate(array(size 19)) at /home/sonn/code/mahara/master/htdocs/lib/pieforms/pieform.php:505
Pieform->__construct(array(size 4)) at /home/sonn/code/mahara/master/htdocs/lib/pieforms/pieform.php:162
Pieform::process(array(size 4)) at /home/sonn/code/mahara/master/htdocs/lib/pieforms/pieform.php:71
pieform(array(size 4)) at /home/sonn/code/mahara/master/htdocs/admin/users/uploadcsv.php:589
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1399464/+subscriptions
References