summaryrefslogtreecommitdiffstats
path: root/app/class/issue.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/issue.class.php')
-rw-r--r--app/class/issue.class.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/class/issue.class.php b/app/class/issue.class.php
index c3381a7..b61a6e3 100644
--- a/app/class/issue.class.php
+++ b/app/class/issue.class.php
@@ -84,6 +84,19 @@ class issue extends object
}
/*
+ * Get the pad this issue exists under
+ */
+ public function getPad() : pad
+ {
+ $parent = $this->getParent();
+
+ if ($parent->objtype == "pad")
+ return $parent;
+
+ return $parent->getParent();
+ }
+
+ /*
* Advance this issue in the pipeline, closing it if already in the
* last stage.
*/