diff options
Diffstat (limited to 'app/class')
-rw-r--r-- | app/class/mesg.class.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/class/mesg.class.php b/app/class/mesg.class.php index d40028c..2e5c9d6 100644 --- a/app/class/mesg.class.php +++ b/app/class/mesg.class.php @@ -266,14 +266,13 @@ 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(user $owner, stage $parent) : ?issue + public function makeIssue(stage $parent) : ?issue { if ($this->getParent()->objtype != "pad") return NULL; - $issue = issue::initNew($this->name, $owner, $parent); - $issue->author = $this->author; - $issue->authored = $this->created; + $issue = issue::initNew($this->name, $this->getOwner(), $parent); + $issue->created = $this->created; $issue->description = $this->mesg; $issue->saveObj(); |