]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixed bug where widgets were not saving their new position
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 20 Nov 2010 14:01:31 +0000 (14:01 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 20 Nov 2010 14:01:31 +0000 (14:01 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7381 36083f99-b078-4883-b0ff-0f9b5a30f544

actions/widgets/add.php
engine/classes/ElggWidget.php
js/lib/ui.widgets.js

index 001c139d818c89b3a9a7bb4b24f1711ba6b4447a..6c2859c219d781438c78e8959e87265004d2c372 100644 (file)
@@ -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);
index 2b6e977fe0640b958d8ea9305d60d92df6c690d1..e1c97577735005c19fb4ee8ac840ceefddd7cf16 100644 (file)
@@ -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',
index ac55d0e7f26ea9990dabe7b3f472a80e105359ca..ebece5a592d2114d57771b792385e3fc60ba4064 100644 (file)
@@ -37,7 +37,7 @@ elgg.ui.widgets.init = function() {
                elgg.action('widgets/add', {\r
                        data: {\r
                                handler: $(this).attr('id'),\r
-                               user: elgg.get_loggedin_userid(),\r
+                               user_guid: elgg.get_loggedin_userid(),\r
                                context: $("input[name='widget_context']").val()\r
                        },\r
                        success: function(json) {\r