mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 05:47:28 -08:00
removed unnecessary if statement
This commit is contained in:
parent
dc77c01fd3
commit
1b80c8938a
|
@ -43,7 +43,6 @@ class LabelsController extends Controller
|
|||
$labelName = str_replace('/', '\\', $labelName);
|
||||
$template = Label::find($labelName);
|
||||
|
||||
if($setting->label2_enable && ($setting->label2_template != 'DefaultLabel')) {
|
||||
$exampleAsset = new Asset();
|
||||
|
||||
$exampleAsset->id = 999999;
|
||||
|
@ -79,7 +78,6 @@ class LabelsController extends Controller
|
|||
$exampleAsset->model->category = new Category();
|
||||
$exampleAsset->model->category->id = 999999;
|
||||
$exampleAsset->model->category->name = trans('admin/labels/table.example_category');
|
||||
}
|
||||
|
||||
foreach($field_selections as $key => $value) {
|
||||
$exampleAsset->{$value} = "{{$key}}";
|
||||
|
|
Loading…
Reference in a new issue