diff options
author | Jeroen Dalsem <jdalsem@coldtrick.com> | 2012-09-13 11:16:23 +0200 |
---|---|---|
committer | Jeroen Dalsem <jdalsem@coldtrick.com> | 2012-09-13 11:16:23 +0200 |
commit | 2a01ffb27c6509f4b9e32675cf4386d3aae1c713 (patch) | |
tree | 4a694629351d76bf172103a4a2e957d97d855472 | |
parent | e1eedeae6a43a5f040402a4ba2c09146877a2672 (diff) | |
download | elgg-2a01ffb27c6509f4b9e32675cf4386d3aae1c713.tar.gz elgg-2a01ffb27c6509f4b9e32675cf4386d3aae1c713.tar.bz2 |
fixes not showing and deleting all metadata values for array type
metadata fields #4858
-rw-r--r-- | actions/profile/edit.php | 3 | ||||
-rw-r--r-- | views/default/forms/profile/edit.php | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/actions/profile/edit.php b/actions/profile/edit.php index 0456c60bc..b6d73ff2d 100644 --- a/actions/profile/edit.php +++ b/actions/profile/edit.php @@ -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); diff --git a/views/default/forms/profile/edit.php b/views/default/forms/profile/edit.php index 222935344..9538b779e 100644 --- a/views/default/forms/profile/edit.php +++ b/views/default/forms/profile/edit.php @@ -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)) { |