Browse Source

+ hot fix for some typespecial fields that should be filterable

Piotr Labudda 7 years ago
parent
commit
f58d372442
1 changed files with 16 additions and 0 deletions
  1. 16 0
      SE/se-lib/TableAjax.php

+ 16 - 0
SE/se-lib/TableAjax.php

@@ -2242,6 +2242,22 @@ jQuery(document).ready(function(){
 						}
 					}
 				}
+
+				// TODO: hot fix for filterable TypespecialVariable fields, @see more in TypespecialVariable::getInstance
+				{
+					switch ($col) {
+						case 'A_ADM_COMPANY':
+						case 'A_CLASSIFIED':
+						case 'K_OD_KOGO':
+						case 'OD_KOGO_ADRES':
+						case 'M_DISTRIBUTOR':
+						case 'DEFAULT_ACL_GROUP':
+						{
+							$columnConfig->sortable = true;
+							$columnConfig->filterable = true;
+						} break;
+					}
+				}
 			}
 
 			if ($columnConfig->xsdType) {// fix fields type p5:typeSpecialSimpleLink (previously defined by Typespecial)