From 401478ab14d41277afd0549a216a639e4eb984cb Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 27 Feb 2009 16:47:03 +0000 Subject: forum post edit bug fixed git-svn-id: https://code.elgg.org/elgg/trunk@2986 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/actions/forums/editpost.php | 3 ++- 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 = << $submit_input

-- cgit v1.2.3