File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ public function render($showNotFound = false)
35
35
->addClass ('advancedOptions ' );
36
36
37
37
// column dropdowns
38
+ $ num = 0 ;
38
39
foreach ($ colValues as $ colName => $ colData ) {
39
40
$ qualifiedColName = $ colName [0 ] !== '% ' ? "$ schema. $ colName " : $ colName ;
40
41
@@ -43,9 +44,13 @@ public function render($showNotFound = false)
43
44
->id ("__filter- $ colName " )
44
45
->attr ('aria-haspopup ' , 'true ' );
45
46
46
- // popup toggler
47
+ // popup toggler uses header if defined in syntax, otherwise label
48
+ $ header = $ colData ['label ' ];
49
+ if (!empty ($ this ->data ['headers ' ][$ num ])) {
50
+ $ header = $ this ->data ['headers ' ][$ num ];
51
+ }
47
52
$ form ->addTagOpen ('div ' )->addClass ('current ' );
48
- $ form ->addHTML ($ colData [ ' label ' ] );
53
+ $ form ->addHTML ($ header );
49
54
$ form ->addTagClose ('div ' );
50
55
51
56
$ form ->addTagOpen ('ul ' )->attr ('aria-expanded ' , 'false ' );
@@ -64,6 +69,7 @@ public function render($showNotFound = false)
64
69
65
70
$ form ->addTagClose ('ul ' );
66
71
$ form ->addTagClose ('div ' ); // close div.toggle
72
+ $ num ++;
67
73
}
68
74
69
75
$ form ->addButton ('struct-filter-submit ' , $ this ->helper ->getLang ('filter_button ' ))
You can’t perform that action at this time.
0 commit comments