aboutsummaryrefslogtreecommitdiff
path: root/lib/models/Courseware/StructuralElement.php
diff options
context:
space:
mode:
authorRon Lucke <lucke@elan-ev.de>2023-12-18 12:03:38 +0000
committerRon Lucke <lucke@elan-ev.de>2023-12-18 12:03:38 +0000
commitba52642f0634f211432e877d9dff0d2dec75d806 (patch)
treea8da0636d714b4f29bc00439dc2f17c5fa995618 /lib/models/Courseware/StructuralElement.php
parente09c643e2ed3719b081ce3ee3b55fb15cbd04274 (diff)
StEP #3255
Merge request studip/studip!2355
Diffstat (limited to 'lib/models/Courseware/StructuralElement.php')
-rw-r--r--lib/models/Courseware/StructuralElement.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/models/Courseware/StructuralElement.php b/lib/models/Courseware/StructuralElement.php
index 34cef80..a63c73f 100644
--- a/lib/models/Courseware/StructuralElement.php
+++ b/lib/models/Courseware/StructuralElement.php
@@ -31,6 +31,7 @@ use User;
* @property string|null $purpose database column
* @property \JSONArrayObject $payload database column
* @property int $public database column
+ * @property int $commentable database column
* @property int $release_date database column
* @property int $withdraw_date database column
* @property \JSONArrayObject $read_approval database column
@@ -758,6 +759,7 @@ class StructuralElement extends \SimpleORMap implements \PrivacyObject
'owner_id' => $user->id,
'editor_id' => $user->id,
'title' => _('neue Seite'),
+ 'commentable' => 0
]);
$struct->store();
@@ -841,6 +843,7 @@ SQL;
'purpose' => $purpose ?: $this->purpose,
'position' => 0,
'payload' => $this->payload,
+ 'commentable' => 0
]);
$element->store();
@@ -892,7 +895,8 @@ SQL;
'image_id' => $image_id,
'image_type' => $this->image_type,
'read_approval' => $parent->read_approval,
- 'write_approval' => $parent->write_approval
+ 'write_approval' => $parent->write_approval,
+ 'commentable' => 0
]);
$element->store();
@@ -1032,7 +1036,8 @@ SQL;
'position' => $parent->countChildren(),
'payload' => $this->payload,
'read_approval' => $parent->read_approval,
- 'write_approval' => $parent->write_approval
+ 'write_approval' => $parent->write_approval,
+ 'commentable' => 0
]);
$element->store();