File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public function Field($properties = array()) {
26
26
$ source = $ this ->getSource ();
27
27
$ options = array ();
28
28
if ($ source ) {
29
- if (is_object ($ source ) && $ this ->emptyString ) {
29
+ if (is_object ($ source ) && $ this ->hasEmptyDefault ) {
30
30
$ options [] = new ArrayData (array (
31
31
'Value ' => '' ,
32
32
'Title ' => $ this ->emptyString ,
Original file line number Diff line number Diff line change 152
152
// _chosen: Object {chosen:Chosen}
153
153
// Contains the current instance of Chosen class
154
154
var lis = $ ( chosen . container ) . find ( '.chzn-drop ul li' )
155
- var options = $ ( chosen . form_field ) . find ( 'optgroup, option' ) ;
155
+ var options = $ ( chosen . form_field ) . find ( 'optgroup, option:not(:empty) ' ) ;
156
156
157
157
for ( var i = 0 ; i < lis . length ; i ++ ) {
158
158
var li = lis [ i ] ;
You can’t perform that action at this time.
0 commit comments