Commit 16a2f730 authored by Lisa Seeto's avatar Lisa Seeto Committed by Gerrit Code Review
Browse files

Merge "Bug 1908837: Setting $releaseuser correctly"

parents 961bcde9 214c899a
......@@ -1433,6 +1433,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,
......@@ -1443,7 +1444,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();
......
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