Problem with Filterby in selectfield in blueprint

#1

FilterBy in select field in blueprint doesn’t work for me in this case:
I want to display a list of hotels (from an other template hotel) which have a propertie active. It gives me all the hotels, also the hotels who does not have the togglefield active.

 hotel:
  label: Select Hotel
  type: select  
  width: 1/2
  options: query
  query: 
   fetch: site.index.template("hotel").filterBy("togglehotel","true")
   text: "{{ page.title }}"
   value: "{{ page.autoid }}"

togglefield in blueprint template hotel

 togglehotel:
    label: Hotel
    type: toggle
    width: 1/3
    default: false
#2

That’s a bug, you have to wrap true in single quotes, will be fixed in 3.1.4

https://github.com/getkirby/kirby/issues/1747

#3

thanks!