From 2e5791e9971e5529b4adfec1928b3afa11305234 Mon Sep 17 00:00:00 2001 From: Wim De Craene Date: Wed, 6 Jan 2016 10:58:08 +0100 Subject: [PATCH] Use names instead of labels to build form. --- CRM/Contact/Form/Edit/Individual.php | 4 ++++ 1 file changed, 4 insertions(+) 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)); -- 2.25.1