]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #5587 - Makes profile edit form sticky
authorPaweł Sroka <srokap@gmail.com>
Fri, 7 Jun 2013 00:37:06 +0000 (02:37 +0200)
committerCash Costello <cash.costello@gmail.com>
Fri, 7 Jun 2013 22:16:44 +0000 (18:16 -0400)
actions/profile/edit.php

index b817463ac408fb2a68ece72d4c5bf207f1149d94..c2a124309353d513e4c3bcc6562af7a8890c9596 100644 (file)
@@ -4,6 +4,8 @@
  *
  */
 
+elgg_make_sticky_form('profile:edit');
+
 $guid = get_input('guid');
 $owner = get_entity($guid);
 
@@ -107,6 +109,7 @@ if (sizeof($input) > 0) {
        // Notify of profile update
        elgg_trigger_event('profileupdate', $owner->type, $owner);
 
+       elgg_clear_sticky_form('profile:edit');
        system_message(elgg_echo("profile:saved"));
 }