fix: update photo handling logic in OrderRequest to check for S3 keys instead of file uploads, improving validation for media management
This commit is contained in:
parent
64a678890e
commit
4ba6b9da9f
@ -123,7 +123,7 @@ public function withValidator(Validator $validator): void
|
||||
$hasExistingPhotos = $order->hasMedia('photos');
|
||||
}
|
||||
|
||||
$hasNewPhotos = $this->hasFile('photos');
|
||||
$hasNewPhotos = ! empty($this->input('s3_keys'));
|
||||
$isRemovingAll = ! empty($this->input('remove_media_ids')) && $hasExistingPhotos;
|
||||
|
||||
if (! $hasExistingPhotos && ! $hasNewPhotos) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user