?
avatar YHartonuk
YHartonuk
19 Aug 2016

Steps to reproduce the issue

Typo in "components\com_users\views\profile\view.html.php" that cause not working tags for com_users profile view. In the line 79 writen "$this->data->tags->getItemTags('com_users.user.', $this->data->id);" but must be "$this->data->tags->getItemTags('com_users.user', $this->data->id);" Also in default_custom.php tmpl there is no code for tags so tags fields will not work in user profile view.

Expected result

$this->data->tags->getItemTags('com_users.user', $this->data->id);

Actual result

$this->data->tags->getItemTags('com_users.user.', $this->data->id);

System information (as much as possible)

Joomla! 3.6.2

Additional comments

avatar YHartonuk YHartonuk - open - 19 Aug 2016
avatar brianteeman brianteeman - change - 19 Aug 2016
Labels Added: ?
avatar bertmert
bertmert - comment - 20 Aug 2016

@YHartonuk
Please test #11681
concerning typo.

avatar andrepereiradasilva
andrepereiradasilva - comment - 21 Aug 2016

@brianteeman i think this can be closed as we have a PR for testing

avatar zero-24 zero-24 - change - 21 Aug 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-08-21 20:35:20
Closed_By zero-24
avatar joomla-cms-bot joomla-cms-bot - close - 21 Aug 2016
avatar joomla-cms-bot
joomla-cms-bot - comment - 21 Aug 2016

Set to "closed" on behalf of @zero-24 by The JTracker Application at issues.joomla.org/joomla-cms/11666

avatar bertmert
bertmert - comment - 22 Aug 2016

@zero-24
Could you please reopen this issue. After an additional find of @andrepereiradasilva (#11681 (comment)) I reflected to much on com_tags (not the first time in my life) to be sure what I'm doing and why. In both cases I think these lines can be removed because they are unnecessary but ???
#11681 (comment)

avatar zero-24 zero-24 - change - 22 Aug 2016
Status Closed New
Closed_Date 2016-08-21 20:35:33
Closed_By zero-24
avatar joomla-cms-bot joomla-cms-bot - reopen - 22 Aug 2016
avatar zero-24
zero-24 - comment - 22 Aug 2016

Done


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

avatar joomla-cms-bot
joomla-cms-bot - comment - 22 Aug 2016
avatar andrepereiradasilva
andrepereiradasilva - comment - 22 Aug 2016
avatar bertmert
bertmert - comment - 22 Aug 2016

Yes I know but as I said I think these lines are completely unnecessary. When I fix the typo in com_content we get an unnecessarily populated array instead of an empty one. So, fixing the typo just to fix it and get an unnecessary overhead is not a good solution.
On the other hand I don't know if we need $this->item->tags = new JHelperTags; under some strange circumstances or if it should be removed, too.

avatar bertmert
bertmert - comment - 22 Aug 2016

com_users: I would prefer to remove the whole incomplete tags (un)logic from this component instead of fixing a single typo.

Means: Should be discussed (or somebody should take over).

avatar YHartonuk
YHartonuk - comment - 22 Aug 2016

Please don't remove this lines from com_users because I use tags for users profile. Please just fix typo.

avatar bertmert
bertmert - comment - 22 Aug 2016

@YHartonuk
You can provide a PR. It's really easy:
https://docs.joomla.org/Using_the_Github_UI_to_Make_Pull_Requests

(I don't see a way to use tags in com_users without core hacks. Maybe I'm wrong.)

avatar YHartonuk
YHartonuk - comment - 22 Aug 2016

I use my custom plugin for user profile and custom com_users view for my theme so I don't use any hack for joomla core

avatar brianteeman brianteeman - change - 2 Oct 2016
Category Components
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Apr 2017

@YHartonuk can you make a PR so this Issue get resolved?


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

avatar joomla-cms-bot joomla-cms-bot - change - 6 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 6 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Apr 2017
Status New Information Required
avatar alikon
alikon - comment - 6 Apr 2017

easy pr made
maybe @YHartonuk can test with his custom extension

avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Apr 2017
The description was changed
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2017-04-06 17:44:39
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 6 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 6 Apr 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 6 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - close - 6 Apr 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Apr 2017

closed as PR made, thanks @alikon


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

Add a Comment

Login with GitHub to post a comment