Delete a couple lines that rewrites validation rules for asset tags in the model Asset.php:save() method.
This commit is contained in:
parent
3f09d17389
commit
d9f5f1182a
1 changed files with 0 additions and 5 deletions
|
@ -180,11 +180,6 @@ class Asset extends Depreciable
|
||||||
*/
|
*/
|
||||||
public function save(array $params = [])
|
public function save(array $params = [])
|
||||||
{
|
{
|
||||||
$settings = \App\Models\Setting::getSettings();
|
|
||||||
|
|
||||||
// I don't remember why we have this here? Asset tag would always be required, even if auto increment is on...
|
|
||||||
$this->rules['asset_tag'] = ($settings->auto_increment_assets == '1') ? 'max:255' : 'required';
|
|
||||||
|
|
||||||
if($this->model_id != '') {
|
if($this->model_id != '') {
|
||||||
$model = AssetModel::find($this->model_id);
|
$model = AssetModel::find($this->model_id);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue