From: cash Date: Sat, 20 Nov 2010 14:01:31 +0000 (+0000) Subject: fixed bug where widgets were not saving their new position X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=58f0a2c30f4111f6b85a1ef05e0f9a04c4d86141;p=lorea%2Felgg.git fixed bug where widgets were not saving their new position git-svn-id: http://code.elgg.org/elgg/trunk@7381 36083f99-b078-4883-b0ff-0f9b5a30f544 --- diff --git a/actions/widgets/add.php b/actions/widgets/add.php index 001c139d8..6c2859c21 100644 --- a/actions/widgets/add.php +++ b/actions/widgets/add.php @@ -6,7 +6,7 @@ * @subpackage Widgets.Management */ -$user_guid = get_input('user'); +$user_guid = get_input('user_guid'); $handler = get_input('handler'); $context = get_input('context'); $column = get_input('column', 1); diff --git a/engine/classes/ElggWidget.php b/engine/classes/ElggWidget.php index 2b6e977fe..e1c975777 100644 --- a/engine/classes/ElggWidget.php +++ b/engine/classes/ElggWidget.php @@ -109,7 +109,7 @@ class ElggWidget extends ElggObject { * @return void * @since 1.8.0 */ - public function move($column, $position) { + public function move($column, $rank) { $options = array( 'type' => 'object', 'subtype' => 'widget', diff --git a/js/lib/ui.widgets.js b/js/lib/ui.widgets.js index ac55d0e7f..ebece5a59 100644 --- a/js/lib/ui.widgets.js +++ b/js/lib/ui.widgets.js @@ -37,7 +37,7 @@ elgg.ui.widgets.init = function() { elgg.action('widgets/add', { data: { handler: $(this).attr('id'), - user: elgg.get_loggedin_userid(), + user_guid: elgg.get_loggedin_userid(), context: $("input[name='widget_context']").val() }, success: function(json) {