It is not possible to delete an item if a replacement is possible
- Status
- Open
- Subject
- It is not possible to delete an item if a replacement is possible
- Version
- 22.x
- Category
- Error
- Regression
- Upgrade Blocker
- Feature
- Trackers
- Resolution status
- New
- Submitted by
- Bernard Sfez / Tiki Specialist
- Keep informed
- Jonny Bradley
- Lastmod by
- Bernard Sfez / Tiki Specialist
- Rating
- Description
On Tiki22 in the tracker interface.
There are case were you want to delete an item and you are proposed a replacement as other trackers items refer to this item.
IE: Item bernard was created several times (doublons, twice "bernard" items).
Some other items in other trackers were created using as reference (item link) those doublons.
So I have in the end several items created that refer to "bernard"-a or "bernard"-b
If I want to clean this and remove one of the doublons I have the following message:
ReplacementSearch and select what you are looking for from the options that appear.
—
bernard
bernard
6 other item(s) currently refer to the element you are trying to delete. They will be replaced by this one.(I tried to add another field to be a second title to see if I can clarify but no joy).
I can see in the DOM code that the 2 bernard refers to a different items one being the item I want to remove. So I proceed and re-assign to one of them. But the item is still here and if I try to delete it now I have 5 attached items... If I do again I have 4 attached, and so, see the video for this part, https://share.vidyard.com/watch/GhbcCdoUSYRwgULtsa7Jmz?
But worst, when I reach 2 other items and then no matter what I can’t delete the item there will be always 2 items prohibiting the removal. Something is broken in the logic and that really really bad !
1/ It should be fixed (re-assign all items and delete)2/ Shouldn’t we omit in the search result the very same item I want to remove. (that doesn’t make sense to display it)
3/ Shouldn’t we add something next to the item title to help understand (itemId is good for dev but not user friendly)
(I had this case with family name and a lot of brothers and sisters ?)
- Workaround
Very dirty workaround that may save someone:
Change the title of the item you want to delete for anything not logical (like "don’t use").
Track the items that have an item link referring to "don’t use" et change the value of the field for the "real" item. Pray you find them all and you don’t have a lot. Once you are done go back to delete the previous item. If you did well they shouldn’t be a suggestion for replacement and you will be able to delete. ?- Importance
- 9
- Easy to solve?
- 5
- Priority
- 45
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 7699
- Created
- Monday 15 March, 2021 10:33:58 UTC
by Bernard Sfez / Tiki Specialist - LastModif
- Monday 15 March, 2021 10:51:58 UTC