summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-10-21 23:28:08 -0400
committerMalf Furious <m@lfurio.us>2018-10-21 23:28:08 -0400
commit384f2649b714d310b385a59cc34d11fff1d85ef2 (patch)
tree820633bafe627f3fc86a3ec4cc070ec7795a4a7b
parentc2d42ce0239c8da0cb9acea922f6dea183196225 (diff)
downloadscrott-384f2649b714d310b385a59cc34d11fff1d85ef2.tar.gz
scrott-384f2649b714d310b385a59cc34d11fff1d85ef2.zip
Revert "mesg: Update function makeIssue()"
This reverts commit 62872702dc413b7abab94d8a5a7bd21770b5d241.
-rw-r--r--app/class/mesg.class.php7
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();