- Fixed 'value' for SearchRequestOrderBy and also fixed a typo where SearchManual would not be set

This commit is contained in:
Dave Mc Nicoll committed 2024-10-07 19:38:29 +00:00
1 parent 4106c8db91
commit 3ba8a2a5d0
2 files changed
+17 -8

No files matched your search

@@ -60,6 +60,8 @@ trait SearchRequestFromRequestTrait
$field = $fieldName;
}
$value = $this->getValueFromSource($request, $propertyName, $attribute);
switch(true) {
case $attribute instanceof SearchGroupBy:
$this->parseAttributeGroupBy($attribute, $field, $propertyName);
@@ -67,14 +69,13 @@ trait SearchRequestFromRequestTrait
case $attribute instanceof SearchWhere:
case $attribute instanceof SearchLike:
case $attribute instanceof SearchManuel:
$value = $this->getValueFromSource($request, $propertyName, $attribute);
case $attribute instanceof SearchManual:
if ($value !== null) {
$value = $this->transformValue($property->getAttributes(Attribute\PropertyValueModifier::class), $value);
}
dump($value);
if ($attribute->toggle) {
$this->$propertyName = !empty($value);
} elseif ($value !== null) {