diff options
author | Malf Furious <m@lfurio.us> | 2018-10-20 22:14:44 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-10-20 22:14:44 -0400 |
commit | 62872702dc413b7abab94d8a5a7bd21770b5d241 (patch) | |
tree | 99f7b965f05c2ebdcb92d464ab1b8c6dc9363c17 /app/class | |
parent | 792e741899cc895651e7b12a38b688c1da6406db (diff) | |
download | scrott-62872702dc413b7abab94d8a5a7bd21770b5d241.tar.gz scrott-62872702dc413b7abab94d8a5a7bd21770b5d241.zip |
mesg: Update function makeIssue()
This function is patched to co-operate with structural changes to the
issue class.
Diffstat (limited to 'app/class')
-rw-r--r-- | app/class/mesg.class.php | 7 |
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(); |