diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/groups/actions/forums/editpost.php | 3 | ||||
-rw-r--r-- | mod/groups/views/default/forum/topicposts.php | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/mod/groups/actions/forums/editpost.php b/mod/groups/actions/forums/editpost.php index 7f6e75683..08c2dd703 100644 --- a/mod/groups/actions/forums/editpost.php +++ b/mod/groups/actions/forums/editpost.php @@ -20,7 +20,8 @@ //get the required variables
$post = get_input("post");
- $post_comment = get_input("postComment");
+ $field_num = get_input("field_num");
+ $post_comment = get_input("postComment{$field_num}");
$annotation = get_annotation($post);
$commentOwner = $annotation->owner_guid;
$access_id = $annotation->access_id;
diff --git a/mod/groups/views/default/forum/topicposts.php b/mod/groups/views/default/forum/topicposts.php index 85f2d62ad..5a3e018d7 100644 --- a/mod/groups/views/default/forum/topicposts.php +++ b/mod/groups/views/default/forum/topicposts.php @@ -68,7 +68,8 @@ $submit_input = elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('save')));
$text_textarea = elgg_view('input/longtext', array('internalname' => 'postComment'.$vars['entity']->id, 'value' => $vars['entity']->value));
$post = elgg_view('input/hidden', array('internalname' => 'post', 'value' => $vars['entity']->id));
- $topic = elgg_view('input/hidden', array('internalname' => 'topic', 'value' => get_input('topic')));
+ $field = elgg_view('input/hidden', array('internalname' => 'field_num', 'value' => $vars['entity']->id));
+ $topic = elgg_view('input/hidden', array('internalname' => 'topic', 'value' => get_input('topic')));
$group = elgg_view('input/hidden', array('internalname' => 'group', 'value' => get_input('group_guid')));
$form_body = <<<EOT
@@ -80,6 +81,7 @@ $post
$topic
$group
+ $field
<p>
$submit_input
</p>
|