File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,12 @@ public function Field($properties = array()) {
86
86
87
87
foreach ($ source as $ item ) {
88
88
$ value = $ item ->{$ this ->keyField };
89
- $ title = $ item ->{$ this ->labelField };
89
+ if (empty ($ this ->labelField )) {
90
+ $ title = '--nbsp ' ;
91
+ } else {
92
+ $ title = $ item ->{$ this ->labelField };
93
+ }
94
+
90
95
$ image = $ item ->{$ this ->imageField }();
91
96
92
97
$ selected = false ;
Original file line number Diff line number Diff line change 1
1
<select $AttributesHTML>
2
2
<% loop $Options %>
3
- <option data-img-src=" $Image.Link" value=" $Value.XML" <% if $Selected %> selected=" selected" <% end_if %><% if $Disabled %> disabled=" disabled" <% end_if %>>$Title.XML</option>
3
+ <option data-img-src=" $Image.Link" value=" $Value.XML" <% if $Selected %> selected=" selected" <% end_if %><% if $Disabled %> disabled=" disabled" <% end_if %>><% if Title == " --nbsp " %>  ; <% else %> $Title.XML<% end_if %> </option>
4
4
<% end_loop %>
5
5
</select>
You can’t perform that action at this time.
0 commit comments