Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo 'com_users.user.' in "components\com_users\views\profile\view.html.php" #11666

Closed
YHartonuk opened this issue Aug 19, 2016 · 16 comments
Closed

Comments

@YHartonuk
Copy link

YHartonuk commented Aug 19, 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

@ghost
Copy link

ghost commented Aug 20, 2016

@YHartonuk
Please test #11681
concerning typo.

@andrepereiradasilva
Copy link
Contributor

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

@joomla-cms-bot
Copy link

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

@ghost
Copy link

ghost commented Aug 22, 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)

@joomla-cms-bot
Copy link

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

@zero-24
Copy link
Contributor

zero-24 commented Aug 22, 2016

Done


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

@andrepereiradasilva
Copy link
Contributor

@ghost
Copy link

ghost commented Aug 22, 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.

@ghost
Copy link

ghost commented Aug 22, 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).

@YHartonuk
Copy link
Author

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

@ghost
Copy link

ghost commented Aug 22, 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.)

@YHartonuk
Copy link
Author

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

@ghost
Copy link

ghost commented Apr 6, 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.

@alikon
Copy link
Contributor

alikon commented Apr 6, 2017

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

@joomla-cms-bot
Copy link

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

@ghost
Copy link

ghost commented Apr 6, 2017

closed as PR made, thanks @alikon


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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants