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
Branches
Tags
No related merge requests found
...@@ -918,9 +918,9 @@ class FormField { ...@@ -918,9 +918,9 @@ class FormField {
return array( return array(
'set' => null, 'set' => null,
'nset' => null, 'nset' => null,
'equal' => array('TextboxField', array()), 'equal' => array('TextboxField', array('configuration' => array('size' => 40))),
'nequal' => array('TextboxField', array()), 'nequal' => array('TextboxField', array('configuration' => array('size' => 40))),
'contains' => array('TextboxField', array()), 'contains' => array('TextboxField', array('configuration' => array('size' => 40))),
'match' => array('TextboxField', array( 'match' => array('TextboxField', array(
'placeholder' => __('Valid regular expression'), 'placeholder' => __('Valid regular expression'),
'configuration' => array('size'=>30), 'configuration' => array('size'=>30),
......
...@@ -368,6 +368,9 @@ implements TemplateVariable, Searchable { ...@@ -368,6 +368,9 @@ implements TemplateVariable, Searchable {
$base = array(); $base = array();
foreach ($uform->getFields() as $F) { foreach ($uform->getFields() as $F) {
$fname = $F->get('name') ?: ('field_'.$F->get('id')); $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()) if (!$F->hasData() || $F->isPresentationOnly())
continue; continue;
if (!$F->isStorable()) if (!$F->isStorable())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment