summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/class/mesg.class.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/class/mesg.class.php b/app/class/mesg.class.php
index 2e5c9d6..d40028c 100644
--- a/app/class/mesg.class.php
+++ b/app/class/mesg.class.php
@@ -266,13 +266,14 @@ class mesg extends obj
* object is created and this message object will be destroyed. If
* this is not an eligible message for promotion, NULL is returned.
*/
- public function makeIssue(stage $parent) : ?issue
+ public function makeIssue(user $owner, stage $parent) : ?issue
{
if ($this->getParent()->objtype != "pad")
return NULL;
- $issue = issue::initNew($this->name, $this->getOwner(), $parent);
- $issue->created = $this->created;
+ $issue = issue::initNew($this->name, $owner, $parent);
+ $issue->author = $this->author;
+ $issue->authored = $this->created;
$issue->description = $this->mesg;
$issue->saveObj();