]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixed incorrect casting to int for profile ids.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 7 Apr 2010 16:43:48 +0000 (16:43 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 7 Apr 2010 16:43:48 +0000 (16:43 +0000)
Fixed incorrect URL for reordering.

git-svn-id: http://code.elgg.org/elgg/trunk@5656 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/profile/actions/deletedefaultprofileitem.php
mod/profile/views/default/profile/editdefaultprofileitems.php

index 7d431020d224ba3f875f424f1baa0875d0c27af0..e54aa026d3df3288f65459fca47502d5cdefc80d 100644 (file)
@@ -13,7 +13,7 @@ global $CONFIG;
 
 admin_gatekeeper();
 
-$id = (int)get_input('id');
+$id = get_input('id');
 
 $fieldlist = get_plugin_setting('user_defined_fields', 'profile');
 if (!$fieldlist) {
index 8a99b08dc638f2adc6778e84e8367f5ba616c178..403943d2364cb3eae5933b67b3122a83adc468e7 100644 (file)
@@ -26,7 +26,7 @@ $(document).ready(function() {
 \r
        $save = elgg_echo('save');\r
        $cancel = elgg_echo('cancel');\r
-       $url = elgg_add_action_tokens_to_url("{$vars['url']}action/profile/editdefault/editfield", FALSE);\r
+       $edit_url = elgg_add_action_tokens_to_url("{$vars['url']}action/profile/editdefault/editfield", FALSE);\r
 \r
        foreach($vars['items'] as $item) {\r
                echo <<< END\r
@@ -34,7 +34,7 @@ $(document).ready(function() {
 <script language="javascript" type="text/javascript">\r
 \r
        $(function() {\r
-               $(".{$item->shortname}_editable").editable("$url", {\r
+               $(".{$item->shortname}_editable").editable("$edit_url ", {\r
                        type   : 'text',\r
                        submitdata: { _method: "post", 'field': '{$item->shortname}' },\r
                        onblur: 'submit',\r