Note that the "Clone tracker items" option name has been changed for "Duplicate tracker items" in Tiki25.
On tracker control panel it is possible to enable the option "Duplicate tracker items (Allow copying tracker item information to a new tracker item. ) "
When duplicating an item, if this item is used in another tracker through an item link the "children" items will be duplicate too. Victor 🙏 ported to my attention that this code/feature is here since 2012.
While it was added 10 years ago and trackers or tracker usage complexity has greatly improved and changed, other people may be using it this feature as is. (so it need to be preserved)
The code is shared and used by the clone_tracker_item of the pluginListExecute.
I see several issues;
Here an video to illustrate the issue;
On tracker A I have a product.
On tracker B I have 12 orders with an item link to the products in the tracker A.
After I duplicate a single product in tracker A, it will create also a duplicate for each item it is link to so now I have 24 new product items and as the tracker use a user selector field set to creator, admin is now the value of the field.
Duplicate Trackeritem Create Children
To answer the problem we need to discuss and have a consensus.
- We need a new option for the user to select if only the targeted item should be duplicated (new behaviour) or if the targeted items + all children should be duplicated (as it is today).
-- Where the option selection should be set ?
- What should be the default ?
- The clone action in the plugin ListExecute ?
Reminder: This code/feature is here since 2012 so people may use it as is.
- I added some documentation to
The URL for the show2.tiki.org instance that demonstrates this bug is at: http://bsfez-11581-8169.show2.tiki.org. Note that if you get a popup asking for a username/password, please just enter "show" and "show". This is different from the initial login and password for a new Tiki which is "admin" and "admin".
For the install log, see http://bsfez-11581-8169.show2.tiki.org/info.txt
Note that if you see PHP errors or a Tiki claiming to be missing third party software, the instance creation is probably not finished. Please wait a couple minutes and reload.
Snapshots are database dumps of the configuration that developers can download for debugging. Once you have reproduced your bug on the show2.tiki.org instance, create a snapshot that can then be downloaded by developers for further investigation.
Snapshots can be accessed at: http://bsfez-11581-8169.show2.tiki.org/snapshots/. Note that if you get a popup asking for a username/password, please just enter "show" and "show".
Create new snapshotfilename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |