aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/actions
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-07-11 01:24:57 +0200
committerCash Costello <cash.costello@gmail.com>2012-07-11 18:59:17 -0400
commit84666d49fcc1191075f45b75a164ed0383c2c375 (patch)
tree355b1c43cd33adea935a7d765ef9ab80b88dba02 /mod/groups/actions
parent4d42fd0263948eee4a7c7a26ceca0647c01cce32 (diff)
downloadelgg-84666d49fcc1191075f45b75a164ed0383c2c375.tar.gz
elgg-84666d49fcc1191075f45b75a164ed0383c2c375.tar.bz2
Fixes #4381. Group edit form made sticky.
Diffstat (limited to 'mod/groups/actions')
-rw-r--r--mod/groups/actions/groups/edit.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/groups/actions/groups/edit.php b/mod/groups/actions/groups/edit.php
index b513a6098..a3ad91622 100644
--- a/mod/groups/actions/groups/edit.php
+++ b/mod/groups/actions/groups/edit.php
@@ -15,6 +15,8 @@ function profile_array_decoder(&$v) {
$v = html_entity_decode($v, ENT_COMPAT, 'UTF-8');
}
+elgg_make_sticky_form('groups');
+
// Get group fields
$input = array();
foreach ($CONFIG->group as $shortname => $valuetype) {
@@ -106,6 +108,9 @@ if (elgg_get_plugin_setting('hidden_groups', 'groups') == 'yes') {
$group->save();
+// group saved so clear sticky form
+elgg_clear_sticky_form('groups');
+
// group creator needs to be member of new group and river entry created
if ($new_group_flag) {
elgg_set_page_owner_guid($group->guid);