Logs of a cloned object (by an entity transfer) should states it is a clone
(Note: I already opened an issue on official issue tracker but was asked to post on Userecho to see if it worth it. So here it is)
When the entity transfer wizard is cloning objets, an explicit "Cloning from object x" event should be added to clone object's logs.
I got into this when transferring a computer to another entity. That computer was attached to documents (and contracts) which where cloned into the destination entity.
Steps to reproduce (my experience, variations may also works)
- - Have the following entities:
- Entity E1
- Entity E2 (as a sub-entity of E1)
- Create computer C1 into entity E1
- Create computer C2 into entity E1
- Create document D into entity E1 (ID=726, used below)
- Attach document D to computers C1 and C2
- Transfer C1 to entity E2
Computer C1 is now into entity E2.
A new document D' is created into entity E2 as a copy/clone of document D (the latter stays in E1) with ID=727 (in my example)
While cloning the document D, GLPI clones D_'s logs: it creates new events rows with new IDs keeping the original dates and other informations, but it alos adds two new events "Add the item" and "Change Entity E1 (0) by Entity E1 > Entity E2 (1)" timestamped at the date the transfer was performed.
Logs of D:
8641 2016-03-09 10:54 User (8) Computer Add a link with an item: Test computer2 for entity transfer (409)
8625 2016-03-09 10:46 User (8) Computer Add a link with an item: Test computer1 for entity transfer (408)
8624 2016-03-09 10:45 User (8) - Add the item
Logs of D':
9320 2016-03-09 11:00 User (8) Entity Change Entité racine (0) by Entité racine > FooBar (1)
9319 2016-03-09 10:54 User (8) Computer Add a link with an item: Test computer2 for entity transfer (409)
9316 2016-03-09 10:46 User (8) Computer Add a link with an item: Test computer1 for entity transfer (408)
9315 2016-03-09 10:45 User (8) - Add the item
9314 2016-03-09 11:00 User (8) - Add the item
We see that events 8624, 8625 and 8641 gets copied to D' as-is (respectively as 9315, 9316 and 9319) and that events 9314 and 9320 are added.
I suggest that logs of that D' object states it was created as a clone of D.
The Event 9314's label should be "Create the item as a clone of Document 726" or something similar.
GLPI version: 0.90.1
Customer support service by UserEcho