Skip to content
Snippets Groups Projects
Commit aea2b7c0 authored by Jared Hancock's avatar Jared Hancock Committed by Peter Rotich
Browse files

queue: Fix search by user email address

parent 867a4c82
No related branches found
No related tags found
No related merge requests found
......@@ -918,9 +918,9 @@ class FormField {
return array(
'set' => null,
'nset' => null,
'equal' => array('TextboxField', array()),
'nequal' => array('TextboxField', array()),
'contains' => array('TextboxField', array()),
'equal' => array('TextboxField', array('configuration' => array('size' => 40))),
'nequal' => array('TextboxField', array('configuration' => array('size' => 40))),
'contains' => array('TextboxField', array('configuration' => array('size' => 40))),
'match' => array('TextboxField', array(
'placeholder' => __('Valid regular expression'),
'configuration' => array('size'=>30),
......
......@@ -368,6 +368,9 @@ implements TemplateVariable, Searchable {
$base = array();
foreach ($uform->getFields() as $F) {
$fname = $F->get('name') ?: ('field_'.$F->get('id'));
# XXX: email in the model corresponds to `emails__address` ORM path
if ($fname == 'email')
$fname = 'emails__address';
if (!$F->hasData() || $F->isPresentationOnly())
continue;
if (!$F->isStorable())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment