From eb4b42f32856b0e5616b700614c8c68d77cd0ea3 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 3 Jun 2017 17:24:31 -0400 Subject: issue: Fix bug in function advance() The call to setParent() should have been in an else. It was being called every time... --- app/class/issue.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/class/issue.class.php b/app/class/issue.class.php index e439dff..1286e1a 100644 --- a/app/class/issue.class.php +++ b/app/class/issue.class.php @@ -100,8 +100,8 @@ class issue extends object if (!($next = $stage->getNext())) $this->close(); - - $this->setParent($next); + else + $this->setParent($next); } /* -- cgit v1.2.3