glpi-project / telemetry

Telemetry & references for your projects
https://glpi-project.github.io/telemetry/
MIT License
6 stars 2 forks source link

Creating reference without uuid overrides existing one #18

Closed trasher closed 7 years ago

trasher commented 7 years ago

When creating a new reference; we rely on uuid to update or cretae.

When uuid is empty (from the form when not called from any app); same row is overrided again and again.

trasher commented 7 years ago

As a solution; we should check if uuid is empty from form data; and then call create instead of createOrUpdate. This will not detect any duplicates from the form directly (wll... I see problem several times during my test; maybe not in real life).