Use converted value if colum uses a lookup table
[misc/kostenrechnung] / lib / rico / ricoLiveGrid.js
index 7f96af9..61b0cac 100644 (file)
@@ -790,6 +790,7 @@ Rico.LiveGridMethods.prototype = {
         if (c0.match(/<span\s+class=(['"]?)ricolookup\1>(.*)<\/span>/i)) {
           c1=RegExp.leftContext;
         }
+        if (col._getdesc) c1 = col._getdesc(c1);
         opt=RicoUtil.addSelectOption(field,c0,c1 || RicoTranslate.getPhraseById("filterBlank"));
         if (col.filterType==Rico.TableColumn.USERFILTER && c0==v) opt.selected=true;
       }