Commit b50c1565 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1825092: Check institution is set in autocomplete form element" into 18.10_STABLE

parents 6da035a1 17d64779
......@@ -121,7 +121,9 @@ function pieform_element_autocomplete(Pieform $form, $element) {
if (isset($element['description'])) {
$smarty->assign('describedby', $form->element_descriptors($element));
$smarty->assign('institution', $element['institution']);
if (isset($element['institution'])) {
$smarty->assign('institution', $element['institution']);
return $smarty->fetch('form/autocomplete.tpl');
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