You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The selector "template=accommodationtype,availability.column=1194,availability.row=1889,availability.value=1"
should return all accommodationtypes where all availability restrictions match: availablity.column = 1194 AND availability.row=1887 AND availability.value=1
What actually happends (looking at the querylog), is that the availability field is joined 3 times, matching all 3 subfields seperately, then grouping the result and thus returning all accommodationtypes where either of the restrictions are met:
What type of field is "availability"? (Page field?). Are any of your subfields: "column", "row", or "value" able to contain multiple values? For instance, might they be Page fields or Options fields?
The selector "template=accommodationtype,availability.column=1194,availability.row=1889,availability.value=1"
should return all accommodationtypes where all availability restrictions match: availablity.column = 1194 AND availability.row=1887 AND availability.value=1
What actually happends (looking at the querylog), is that the availability field is joined 3 times, matching all 3 subfields seperately, then grouping the result and thus returning all accommodationtypes where either of the restrictions are met:
More info and a proposed fix here: https://processwire.com/talk/topic/11099-subfield-selector-unexpectedly-returning-result-in-or-like-fashion/
The text was updated successfully, but these errors were encountered: