From 62872702dc413b7abab94d8a5a7bd21770b5d241 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 20 Oct 2018 22:14:44 -0400 Subject: mesg: Update function makeIssue() This function is patched to co-operate with structural changes to the issue class. --- app/class/mesg.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'app') 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(); -- cgit v1.2.3