? Success

User tests: Successful: Unsuccessful:

avatar Buddhima
Buddhima
2 Aug 2014

Hi,
Currently JHelperTags not considering about purely UCM data when deleting last tag. It's just remove entry from #_ucm_content table when saving after removing last tag.
This fix checks the whether $table type is JTableCorecontent and if so, not remove #_ucm_content entry.

Issue Tracker Item: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=34036&start=0

avatar Buddhima Buddhima - open - 2 Aug 2014
avatar jissues-bot jissues-bot - change - 2 Aug 2014
Labels Added: ? ?
avatar brianteeman brianteeman - change - 2 Aug 2014
Labels Added: ?
Removed: ?
avatar brianteeman brianteeman - change - 2 Aug 2014
Title
Fix deleting in JHelperTags for #_ucm_content only entries
[#34036] Fix deleting in JHelperTags for #_ucm_content only entries
avatar brianteeman brianteeman - change - 2 Aug 2014
Title
[#34036] Fix deleting in JHelperTags for #_ucm_content only entries
Fix deleting in JHelperTags for #_ucm_content only entries
avatar brianteeman brianteeman - change - 2 Aug 2014
Title
Fix deleting in JHelperTags for #_ucm_content only entries
[#34036] Fix deleting in JHelperTags for #_ucm_content only entries
avatar Buddhima Buddhima - change - 2 Aug 2014
Title
Fix deleting in JHelperTags for #_ucm_content only entries
[#34036] Fix deleting in JHelperTags for #_ucm_content only entries
avatar Bakual
Bakual - comment - 3 Aug 2014

I wonder why deleteTagData ever should delete the UCM part.
But then the whole UCM thing is flawed and should seriously be rethinked and not be used by other extensions.

avatar Buddhima
Buddhima - comment - 3 Aug 2014

Hi,
Currently ucm only work for tagged items. When a user add tag to an item, then it get inserted in to #_ucm_content. So when user remove last tag, the record at #_ucm_content also need to remove.
Currently there's no component which purely using #_ucm_content table. We can eliminate this if condition once all components start to use UCM.

avatar Bakual
Bakual - comment - 3 Aug 2014

Yep, currently only tags uses the ucm tables. But given it's UCM you don't know if any other extension uses it as you said. That's why I think it should only delete the tags part of it, and not the UCM part.
But it shows one of the flaws of the implementation.

We can eliminate this if condition once all components start to use UCM.

I don't think that ever happens. At least not with the current implementation.

avatar nicksavov nicksavov - change - 21 Aug 2014
Labels Removed: ?
avatar brianteeman brianteeman - change - 21 Aug 2014
Status New Pending
avatar brianteeman brianteeman - change - 2 Sep 2014
Category Tags
avatar Buddhima
Buddhima - comment - 18 Oct 2014

Hi,
I think this PR tries to give the solution according current situation. And this will help extension developers to see how UCM should properly work.
As far as I know, this is not the way UCM was originally planned. Somehow it was restricted to tagged items and as a result of that, this kind of undesired things imposed.
I believe this will help to remove an undesired situation from extension developers who like UCM.

avatar wilsonge
wilsonge - comment - 18 Oct 2014

I'm with @Bakual lets just make sure when you delete the last tag you don't delete an item from UCM Content. Only on item deletion itself.

avatar roland-d roland-d - change - 20 Aug 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-08-20 20:03:26
Closed_By roland-d
avatar roland-d roland-d - close - 20 Aug 2015
avatar roland-d roland-d - close - 20 Aug 2015
avatar roland-d
roland-d - comment - 20 Aug 2015

Hello @Buddhima

Thank you for your contribution. As 2 PLT members have strong objections, I am closing this PR.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4059.

Add a Comment

Login with GitHub to post a comment