Skip to content

Commit

Permalink
Detect Resrv query_scope
Browse files Browse the repository at this point in the history
  • Loading branch information
afonic committed Nov 7, 2024
1 parent 14924aa commit 8bac7e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Http/Livewire/Traits/HandleParams.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,14 @@ protected function handleTaxonomyCondition($field, $payload, $modifier)
$this->dispatchParamsUpdated();
}

// TODO: improve Resrv detection
protected function handleQueryScopeCondition($field, $payload, $modifier)
{
$queryScopeKey = 'query_scope';
$modifierKey = $modifier.':'.$field;

$this->params[$queryScopeKey] = $modifier;
$this->params[$modifierKey] = $this->toPipeSeparatedString($payload);
$this->params[$modifierKey] = $field === 'resrv_availability' ? $payload : $this->toPipeSeparatedString($payload);

$this->dispatchParamsUpdated();
}
Expand Down

0 comments on commit 8bac7e1

Please sign in to comment.