aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-27 16:47:03 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-27 16:47:03 +0000
commit401478ab14d41277afd0549a216a639e4eb984cb (patch)
tree9b6bd3d1d627fac842e24c4dc8b5417011e7682a /mod/groups
parent85064fbe0ebc019fe2e7f96a2b0fae09f24f2c98 (diff)
downloadelgg-401478ab14d41277afd0549a216a639e4eb984cb.tar.gz
elgg-401478ab14d41277afd0549a216a639e4eb984cb.tar.bz2
forum post edit bug fixed
git-svn-id: https://code.elgg.org/elgg/trunk@2986 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups')
-rw-r--r--mod/groups/actions/forums/editpost.php3
-rw-r--r--mod/groups/views/default/forum/topicposts.php4
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>