Commit 2e930c3e authored by Son Nguyen's avatar Son Nguyen
Browse files

Fix the bug when copying a collection from another user (Bug #886080)



Error message: Undefined $suspendedctime

Change-Id: I421e168c9d113fa0be27aabf68371f54c47fa7c8
Signed-off-by: default avatarSon Nguyen <son.nguyen@catalyst.net.nz>
parent e68176cc
......@@ -3429,7 +3429,7 @@ class View {
$userid = $USER->get('id');
$fields = array(
'id', 'username', 'firstname', 'lastname', 'preferredname', 'admin', 'staff', 'studentid', 'email',
'profileicon', 'urlid',
'profileicon', 'urlid', 'suspendedctime',
);
if (count($owners) == 1 && isset($owners[$userid])) {
$owners = array($userid => new StdClass);
......@@ -4091,6 +4091,7 @@ class View {
'submittedgroup' => $r['csubmitgroup'],
'submittedhost' => $r['csubmithost'],
'submittedtime' => $r['csubmittime'],
'template' => $r['template'],
'views' => array(),
);
if (isset($r['user'])) {
......
Markdown is supported
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