Sfoglia il codice sorgente

fixed add person or com search after update AsynTypeahead in vendor.js

Piotr Labudda 5 anni fa
parent
commit
71ccbc7882
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      tools/Bocian.php.addItemToRaport.js

+ 2 - 1
tools/Bocian.php.addItemToRaport.js

@@ -89,7 +89,8 @@ function convertXlinkToObjects(items) {
   })
 }
 
-function filterByHelper(option, text) {
+function filterByHelper(option, node) {
+  var text = (node && node.text) ? node.text : '';
   var label = option.label.toLowerCase();
   var words = ( (text.indexOf(' ') > 0)
     ? text.split(' ')