aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/ItemObject.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ItemObject.php b/include/ItemObject.php
index 62a8c9c42..6c43d4e9e 100644
--- a/include/ItemObject.php
+++ b/include/ItemObject.php
@@ -296,9 +296,10 @@ class Item extends BaseObject {
return $this->threaded;
}
-
public function set_commentable($val) {
$this->commentable = $val;
+ foreach($this->get_children() as $child)
+ $child->set_commentable($val);
}
public function is_commentable() {