mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
cleanup for pr
This commit is contained in:
parent
bcfa913450
commit
d55358652b
|
@ -11,7 +11,6 @@ use App\Models\User;
|
|||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Input;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Support\Facades\View;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
use Redirect;
|
||||
|
@ -515,7 +514,6 @@ class AssetModelsController extends Controller
|
|||
$validator = Validator::make($data, $rules);
|
||||
|
||||
if($validator->fails()){
|
||||
Log::debug($validator->errors());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -93,7 +93,7 @@ class CustomFieldset extends Model
|
|||
array_push($rule, $field->attributes['format']);
|
||||
$rules[$field->db_column_name()] = $rule;
|
||||
// add not_array to rules for all fields
|
||||
// condition added to fix issue with model default updates
|
||||
// temporary condition added to fix issue with model default updates in the gui
|
||||
if ($field->element != 'checkbox') {
|
||||
$rules[$field->db_column_name()][] = 'not_array';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue