]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixes not showing and deleting all metadata values for array type
authorJeroen Dalsem <jdalsem@coldtrick.com>
Thu, 13 Sep 2012 09:16:23 +0000 (11:16 +0200)
committerJeroen Dalsem <jdalsem@coldtrick.com>
Thu, 13 Sep 2012 09:16:23 +0000 (11:16 +0200)
metadata fields #4858

actions/profile/edit.php
views/default/forms/profile/edit.php

index 0456c60bc5fa1ba74dbb40a917492836e1b211c0..b6d73ff2d2798c241b3414acb4acd8a291cd2a27 100644 (file)
@@ -71,7 +71,8 @@ if (sizeof($input) > 0) {
        foreach ($input as $shortname => $value) {
                $options = array(
                        'guid' => $owner->guid,
-                       'metadata_name' => $shortname
+                       'metadata_name' => $shortname,
+                       'limit' => false
                );
                elgg_delete_metadata($options);
                
index 222935344e07bcf4fbafd3490630f0c237a905df..9538b779eac94b173ae0b9cc7233025e882e56cd 100644 (file)
@@ -18,7 +18,8 @@ if (is_array($profile_fields) && count($profile_fields) > 0) {
        foreach ($profile_fields as $shortname => $valtype) {
                $metadata = elgg_get_metadata(array(
                        'guid' => $vars['entity']->guid,
-                       'metadata_name' => $shortname
+                       'metadata_name' => $shortname,
+                       'limit' => false
                ));
                if ($metadata) {
                        if (is_array($metadata)) {