A free open source IT asset/license management system
Removed debugging
snipe766eee78b204
diff --git a/app/Providers/ValidationServiceProvider.php b/app/Providers/ValidationServiceProvider.phpindex 295078caad..5ee904d20d 100644--- a/app/Providers/ValidationServiceProvider.php+++ b/app/Providers/ValidationServiceProvider.php@@ -63,12 +63,11 @@ class ValidationServiceProvider extends ServiceProvider* `unique_undeleted:table,fieldname` in your rules out of the box*/Validator::extend('unique_undeleted', function ($attribute, $value, $parameters, $validator) {-+if (count($parameters)) {// This is a bit of a shim, but serial doesn't have any other rules around it other than that it's nullableif (($parameters[0]=='assets') && ($attribute == 'serial') && (Setting::getSettings()->unique_serial != '1')) {- \Log::debug('Checking for serial and it is not unique');return true;}