Reviewed: https://reviews.mahara.org/427 Committed: http://gitorious.org/mahara/mahara/commit/cbcb855f19eba3caae2df29128f4010795391f92 Submitter: Francois Marier (franc...@catalyst.net.nz) Branch: 1.4_STABLE
commit cbcb855f19eba3caae2df29128f4010795391f92 Author: Hugh Davenport <h...@catalyst.net.nz> Date: Thu May 19 10:53:14 2011 +1200 Fix collections edit form to allow setting no navigation Bug #784326 Change-Id: I853202480dbdc0566611f1f8524ef36962e15f37 Signed-off-by: Hugh Davenport <h...@catalyst.net.nz> -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. https://bugs.launchpad.net/bugs/784326 Title: adding a collection with "Page navigation bar" unchecked throws exception Status in Mahara ePortfolio: Fix Released Status in Mahara 1.4 series: Fix Committed Bug description: in /collection/edit.php?new=1 when the "Page navigation bar" option is not selected, then the following error log is given [Wed May 18 11:19:05 2011] [error] [client ::1] [WAR] 4a (lib/errors.php:745) Failed to get a recordset: postgres7 error: [-1: ERROR: invalid input syntax for integer: ""] in adodb_throw(INSERT INTO "collection" ("id", "owner", "ctime", "mtime", "name", "description", "navigation") VALUES (?, ?, ?, ?, ?, ?, ?), Array), referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] [WAR] 4a (lib/errors.php:745) Command was: INSERT INTO "collection" ("id", "owner", "ctime", "mtime", "name", "description", "navigation") VALUES (?, ?, ?, ?, ?, ?, ?) and values was (4,2,2011-05-18 11:19:05,2011-05-18 11:19:05,fh,gh,), referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] Call stack (most recent first):, referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] * log_message("Failed to get a recordset: postgres7 error: [-1: E...", 8, true, true) at /home/hugh/src/mahara/mahara/htdocs/lib/errors.php:109, referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] * log_warn("Failed to get a recordset: postgres7 error: [-1: E...") at /home/hugh/src/mahara/mahara/htdocs/lib/errors.php:745, referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] * SQLException->__construct("Failed to get a recordset: postgres7 error: [-1: E...") at /home/hugh/src/mahara/mahara/htdocs/lib/dml.php:1060, referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] * insert_record("collection", object(stdClass), "id", true) at /home/hugh/src/mahara/mahara/htdocs/lib/collection.php:145, referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] * Collection->commit() at /home/hugh/src/mahara/mahara/htdocs/lib/collection.php:101, referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] * Collection::save(array(size 5)) at /home/hugh/src/mahara/mahara/htdocs/collection/edit.php:86, referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] * submit(object(Pieform), array(size 5)) at Unknown:0, referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] * call_user_func_array("submit", array(size 2)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:512, referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] * Pieform->__construct(array(size 5)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:161, referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] * Pieform::process(array(size 5)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:71, referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] * pieform(array(size 5)) at /home/hugh/src/mahara/mahara/htdocs/collection/edit.php:77, referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] , referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] [WAR] 4a (lib/dml.php:1060) Failed to get a recordset: postgres7 error: [-1: ERROR: invalid input syntax for integer: ""] in adodb_throw(INSERT INTO "collection" ("id", "owner", "ctime", "mtime", "name", "description", "navigation") VALUES (?, ?, ?, ?, ?, ?, ?), Array), referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] [WAR] 4a (lib/dml.php:1060) Command was: INSERT INTO "collection" ("id", "owner", "ctime", "mtime", "name", "description", "navigation") VALUES (?, ?, ?, ?, ?, ?, ?) and values was (4,2,2011-05-18 11:19:05,2011-05-18 11:19:05,fh,gh,), referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] Call stack (most recent first):, referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] * insert_record("collection", object(stdClass), "id", true) at /home/hugh/src/mahara/mahara/htdocs/lib/collection.php:145, referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] * Collection->commit() at /home/hugh/src/mahara/mahara/htdocs/lib/collection.php:101, referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] * Collection::save(array(size 5)) at /home/hugh/src/mahara/mahara/htdocs/collection/edit.php:86, referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] * submit(object(Pieform), array(size 5)) at Unknown:0, referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] * call_user_func_array("submit", array(size 2)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:512, referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] * Pieform->__construct(array(size 5)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:161, referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] * Pieform::process(array(size 5)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:71, referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] * pieform(array(size 5)) at /home/hugh/src/mahara/mahara/htdocs/collection/edit.php:77, referer: http://localhost/mahara/collection/edit.php?new=1 [Wed May 18 11:19:05 2011] [error] [client ::1] , referer: http://localhost/mahara/collection/edit.php?new=1 To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/784326/+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