From: Wim De Craene Date: Wed, 6 Jan 2016 09:58:08 +0000 (+0100) Subject: Use names instead of labels to build form. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2e5791e9971e5529b4adfec1928b3afa11305234;p=civicrm-core.git Use names instead of labels to build form. --- diff --git a/CRM/Contact/Form/Edit/Individual.php b/CRM/Contact/Form/Edit/Individual.php index dd345f21b5..5176b148ae 100644 --- a/CRM/Contact/Form/Edit/Individual.php +++ b/CRM/Contact/Form/Edit/Individual.php @@ -55,6 +55,10 @@ class CRM_Contact_Form_Edit_Individual { 'contact_edit_options', TRUE, NULL, FALSE, 'name', TRUE, 'AND v.filter = 2' ); + + // Use names instead of labels to build form. + $nameFields = array_keys($nameFields); + // Fixme: dear god why? these come out in a format that is NOT the name of the fields. foreach ($nameFields as &$fix) { $fix = str_replace(' ', '_', strtolower($fix));