mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Merge branch 'develop' into ignore_encrypt_and_other_changes
This commit is contained in:
commit
28cf533d19
|
@ -172,6 +172,7 @@ class ActionlogsTransformer
|
||||||
unset($clean_meta['location_id']);
|
unset($clean_meta['location_id']);
|
||||||
}
|
}
|
||||||
if(array_key_exists('model_id', $clean_meta)) {
|
if(array_key_exists('model_id', $clean_meta)) {
|
||||||
|
|
||||||
$clean_meta['model_id']['old'] = "[id: ".$clean_meta['model_id']['old']."] ".$model->find($clean_meta['model_id']['old'])->name;
|
$clean_meta['model_id']['old'] = "[id: ".$clean_meta['model_id']['old']."] ".$model->find($clean_meta['model_id']['old'])->name;
|
||||||
$clean_meta['model_id']['new'] = "[id: ".$clean_meta['model_id']['new']."] ".$model->find($clean_meta['model_id']['new'])->name; /* model is required at asset creation */
|
$clean_meta['model_id']['new'] = "[id: ".$clean_meta['model_id']['new']."] ".$model->find($clean_meta['model_id']['new'])->name; /* model is required at asset creation */
|
||||||
$clean_meta['Model'] = $clean_meta['model_id'];
|
$clean_meta['Model'] = $clean_meta['model_id'];
|
||||||
|
@ -200,4 +201,4 @@ class ActionlogsTransformer
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,11 +21,7 @@ class AddLabel2Settings extends Migration
|
||||||
$table->string('label2_1d_type')->default('default');
|
$table->string('label2_1d_type')->default('default');
|
||||||
$table->string('label2_2d_type')->default('default');
|
$table->string('label2_2d_type')->default('default');
|
||||||
$table->string('label2_2d_target')->default('hardware_id');
|
$table->string('label2_2d_target')->default('hardware_id');
|
||||||
$table->string('label2_fields')->default(
|
$table->string('label2_fields')->default('name=name;serial=serial;model=model.name;');
|
||||||
trans('admin/hardware/form.name').'=name;'.
|
|
||||||
trans('admin/hardware/form.serial').'=serial;'.
|
|
||||||
trans('admin/hardware/form.model').'=model.name;'
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue