TECLIB / fusioninventory-for-glpi

Teclib' version of FusionInventory For GLPI plugin
http://www.FusionInventory.org/
GNU Affero General Public License v3.0
6 stars 5 forks source link

Remove check for lock when converting strings into IDs #21

Closed btry closed 8 years ago

btry commented 8 years ago

If manufacturer of a computer is locked, this check prevents proper build of SQL query, and also generates a PHP warning. It also prevents display in GLPi of the value reported by the FusionInventory Agent next to the locked value (tab locks (fields)).

With this patch, the lock still operates and the field is not altered if its content differs from the detected value by the Agent.

btry commented 8 years ago

ddurieux provided a better patch : https://github.com/fusioninventory/fusioninventory-for-glpi/commit/467d0714a2843a3c3a835347deeffb3ab67aa376