processwire-issues icon indicating copy to clipboard operation
processwire-issues copied to clipboard

findRaw() subfield => label does not work

Open BernhardBaumrock opened this issue 1 year ago • 0 comments

Short description of the issue

I'm using this selector:

bdb($this->wire->pages->findRaw(
  [
    'parent' => rockcommerce()->variationsPage(),
  ],
  [
    'title',
    Variation::field_comment => 'comment',
    Variation::field_options . '.title' => 'options',
  ],
  ['flat' => true]
));

And I get this result:

image

Expected behavior

I'd expect the array key of rockcommerce_variation_options.title to be options as defined in the findRaw() call.

Actual behavior

Variation::field_options . '.title' => 'options', does not take the custom label into account

BernhardBaumrock avatar May 15 '24 09:05 BernhardBaumrock