processwire / processwire-issues

ProcessWire issue reports.
45 stars 2 forks source link

$pages->closest([...]) returns nullpage when using array syntax #1738

Closed BernhardBaumrock closed 1 year ago

BernhardBaumrock commented 1 year ago
image

Not sure if that is intended, but the docblock states it supports arrays:

image

If it's not a bug then I'd kindly ask if we could get support for array syntax here? :)

ryancramerdesign commented 1 year ago

Thanks @BernhardBaumrock I've pushed a fix for this.