Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Add an option to enable monitor serialnumber partial matching #2865

Merged
merged 3 commits into from
Sep 20, 2019
Merged

Add an option to enable monitor serialnumber partial matching #2865

merged 3 commits into from
Sep 20, 2019

Conversation

g-bougard
Copy link
Contributor

Option is disabled by default

As monitor serial numbers are very badly handled by manufacturers in EDID block, the one found by the agent is often partly the one visible on the device itself. When people manually adds monitors in its stock, it will of course put as serial number the one found on device itself or on its packaging.
So this option could be enabled when people starts to see duplicated monitors with serial numbers partially different. This won't merge duplicated entries, so people will always have to delete one of the duplicated entries (the one from the dynamic inventory as first choice).

@trasher
Copy link
Contributor

trasher commented Sep 20, 2019

You have a cs issue, could you fix plase:

FILE: ...oninventory/glpi/plugins/fusioninventory/inc/inventoryruleimport.class.php

--------------------------------------------------------------------------------

FOUND 1 ERROR AFFECTING 1 LINE

--------------------------------------------------------------------------------

 573 | ERROR | [x] Line indented incorrectly; expected at least 18 spaces,

     |       |     found 15

--------------------------------------------------------------------------------

PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY

--------------------------------------------------------------------------------

@trasher trasher merged commit 58de4da into fusioninventory:glpi9.4 Sep 20, 2019
trasher pushed a commit that referenced this pull request Sep 20, 2019
* Add an option to enable monitor serialnumber partial matching
Option is disabled by default

* Try monitor serial partial match only if the serial number has at least 4 chars
trasher pushed a commit that referenced this pull request Sep 20, 2019
* Add an option to enable monitor serialnumber partial matching
Option is disabled by default

* Try monitor serial partial match only if the serial number has at least 4 chars
@g-bougard g-bougard deleted the feature/monitor-serial-partial-match branch September 20, 2019 07:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants