From: Paweł Sroka Date: Fri, 7 Jun 2013 00:37:06 +0000 (+0200) Subject: Fixes #5587 - Makes profile edit form sticky X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=50ca9866486b27defa3b327f0b501ee316a5efeb;p=lorea%2Felgg.git Fixes #5587 - Makes profile edit form sticky --- diff --git a/actions/profile/edit.php b/actions/profile/edit.php index b817463ac..c2a124309 100644 --- a/actions/profile/edit.php +++ b/actions/profile/edit.php @@ -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")); }