Merge pull request #6575 from akathuria289/issue_6359

Fixed issue #6359
This commit is contained in:
Jitendra Singh 2022-08-09 16:24:32 +05:30 committed by GitHub
commit 6eff4ca165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -115,7 +115,7 @@
}
if ($attribute->type == 'price') {
array_push($validations, 'decimal');
array_push($validations, 'decimal:2');
}
if ($attribute->type == 'file') {
@ -130,7 +130,9 @@
array_push($validations, 'size:' . $retVal . '|mimes:bmp,jpeg,jpg,png,webp');
}
array_push($validations, $attribute->validation);
if ($attribute->type != 'price') {
array_push($validations, $attribute->validation);
}
$validations = implode('|', array_filter($validations));
?>