Commit f7bc2071 authored by Robert Lyon's avatar Robert Lyon Committed by Lisa Seeto
Browse files

Bug 1908837: Setting $releaseuser correctly



When archiving a collection

Change-Id: I4c978de93e04dcdedc328f5d31f8dc13d9208159
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit 214c899a)
parent 44075cd2
......@@ -1314,6 +1314,7 @@ class Collection {
View::_db_release($viewids, $this->owner, $this->submittedgroup);
db_commit();
$releaseuser = optional_userobj($releaseuser);
handle_event('releasesubmission', array('releaseuser' => $releaseuser,
'id' => $this->get('id'),
'hostname' => $this->submittedhost,
......@@ -1324,7 +1325,6 @@ class Collection {
// (though I'm not sure why)
// if the method is called in an upgrade and we dont have a release user
if (!defined('INSTALLER') && $this->submittedgroup) {
$releaseuser = optional_userobj($releaseuser);
$releaseuserdisplay = display_name($releaseuser, $this->owner);
$releaseuserid = ($releaseuser instanceof User) ? $releaseuser->get('id') : $releaseuser->id;
$submitinfo = $this->submitted_to();
......
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