Fix "Uncaught TypeError: Cannot read property 'slice' of undefined"

pull/2487/head
jmontoyaa 8 years ago
parent e8a0837b28
commit 0b50d7b5da
  1. 9
      main/inc/lib/formvalidator/Element/SelectAjax.php

@ -95,9 +95,14 @@ class SelectAjax extends HTML_QuickForm_select
};
},
processResults: function (data, page) {
//parse the results into the format expected by Select2
// Parse the results into the format expected by Select2
if (data.items) {
return {
results: data.items
};
}
return {
results: data.items
results: ''
};
}
$formatCondition

Loading…
Cancel
Save