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 { ...@@ -3429,7 +3429,7 @@ class View {
$userid = $USER->get('id'); $userid = $USER->get('id');
$fields = array( $fields = array(
'id', 'username', 'firstname', 'lastname', 'preferredname', 'admin', 'staff', 'studentid', 'email', 'id', 'username', 'firstname', 'lastname', 'preferredname', 'admin', 'staff', 'studentid', 'email',
'profileicon', 'urlid', 'profileicon', 'urlid', 'suspendedctime',
); );
if (count($owners) == 1 && isset($owners[$userid])) { if (count($owners) == 1 && isset($owners[$userid])) {
$owners = array($userid => new StdClass); $owners = array($userid => new StdClass);
...@@ -4091,6 +4091,7 @@ class View { ...@@ -4091,6 +4091,7 @@ class View {
'submittedgroup' => $r['csubmitgroup'], 'submittedgroup' => $r['csubmitgroup'],
'submittedhost' => $r['csubmithost'], 'submittedhost' => $r['csubmithost'],
'submittedtime' => $r['csubmittime'], 'submittedtime' => $r['csubmittime'],
'template' => $r['template'],
'views' => array(), 'views' => array(),
); );
if (isset($r['user'])) { 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