Revert "Fixed issue #6359"

This commit is contained in:
Jitendra Singh 2022-08-09 17:33:04 +05:30 committed by GitHub
parent 6eff4ca165
commit b24db87643
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

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