mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Explicitly cast asset tag to string when querying
This commit is contained in:
parent
9cc74caa9e
commit
4cbe683a1a
|
@ -60,7 +60,7 @@ class AssetImporter extends ItemImporter
|
||||||
$asset_tag = Asset::autoincrement_asset();
|
$asset_tag = Asset::autoincrement_asset();
|
||||||
}
|
}
|
||||||
|
|
||||||
$asset = Asset::where(['asset_tag'=> $asset_tag])->first();
|
$asset = Asset::where(['asset_tag'=> (string) $asset_tag])->first();
|
||||||
if ($asset) {
|
if ($asset) {
|
||||||
if (! $this->updating) {
|
if (! $this->updating) {
|
||||||
$this->log('A matching Asset '.$asset_tag.' already exists');
|
$this->log('A matching Asset '.$asset_tag.' already exists');
|
||||||
|
|
Loading…
Reference in a new issue