Commit fc43b916 authored by jaapjansma's avatar jaapjansma
Browse files

update

parent 21871ea8
......@@ -60,7 +60,7 @@ class Token implements OutputInterface {
'placeholder' => E::ts('- select -'),
));
$form->add('select', 'sort', E::ts('Sort'), $sortFields, false, array(
$form->add('select', 'sortfield', E::ts('Sort'), $sortFields, false, array(
'style' => 'min-width:250px',
'class' => 'crm-select2 huge',
'multiple' => false,
......@@ -81,7 +81,7 @@ class Token implements OutputInterface {
$defaults['hidden_fields'] = $output['configuration']['hidden_fields'];
}
if (isset($output['configuration']['sort'])) {
$defaults['sort'] = $output['configuration']['sort'];
$defaults['sortfield'] = $output['configuration']['sort'];
}
}
}
......@@ -113,7 +113,7 @@ class Token implements OutputInterface {
public function processConfiguration($submittedValues, &$output) {
$configuration['contact_id_field'] = $submittedValues['contact_id_field'];
$configuration['hidden_fields'] = $submittedValues['hidden_fields'];
$configuration['sort'] = $submittedValues['sort'];
$configuration['sort'] = $submittedValues['sortfield'];
return $configuration;
}
......
......@@ -10,8 +10,8 @@
<div class="clear"></div>
</div>
<div class="crm-section">
<div class="label">{$form.sort.label}</div>
<div class="content">{$form.sort.html}</div>
<div class="label">{$form.sortfield.label}</div>
<div class="content">{$form.sortfield.html}</div>
<div class="clear"></div>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment