Commit 8f4c5d36 authored by Son Nguyen's avatar Son Nguyen
Browse files

The collection id is required when editing an existing collection



Change-Id: Ia6cba7a88a18046e93bea90fdb3d3b5652db2567
Signed-off-by: default avatarSon Nguyen <son.nguyen@catalyst.net.nz>
parent 9bfa3f39
......@@ -37,7 +37,7 @@ require_once('pieforms/pieform.php');
require_once('collection.php');
$new = param_boolean('new', 0);
$id = param_integer('id', 0);
$id = !$new ? param_integer('id') : 0;
$collection = new Collection($id);
if (!$USER->can_edit_collection($collection)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment