aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 14:01:31 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 14:01:31 +0000
commit58f0a2c30f4111f6b85a1ef05e0f9a04c4d86141 (patch)
tree7a965b08fd614cd2347e23b1262dac80571441a2
parente71f5d4fc6b04776558fcd8be2a306acbae2eec8 (diff)
downloadelgg-58f0a2c30f4111f6b85a1ef05e0f9a04c4d86141.tar.gz
elgg-58f0a2c30f4111f6b85a1ef05e0f9a04c4d86141.tar.bz2
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
-rw-r--r--actions/widgets/add.php2
-rw-r--r--engine/classes/ElggWidget.php2
-rw-r--r--js/lib/ui.widgets.js2
3 files changed, 3 insertions, 3 deletions
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) {