-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Fix several issues in view feed of com_tags component #4651
Conversation
Thanks for the fix @joomdonation ^_^ |
You're welcome @javigomez . Hopefully this PR can be reviewed and merged (It is quite difficult to provide testing instructions for these kind of PRs :( ). |
@test, I've tested this issue, please find my test cases as screen shots: |
Thanks @rajeshstarlite for testing this PR. Unfortunately, I deleted the original repo and now I could not update the PR with new code. Could you please help making another change and test it again:
After that, please help test it again. If everything goes well, I will open a new PR to fix this issue. For some reason, I could not see the author displayed as well. Maybe it depends on the rss reader which we are using. If you view the source of the feed, you will see the is generated like below (the author tag is available but not displayed)
Sorry for could not reply you earlier. It was my office time, so I could not work on it until now (after dinner :) ) Thanks again |
@@ -127,6 +127,11 @@ protected function getListQuery() | |||
->from($db->quoteName('#__tags') . ' AS a') | |||
->where($db->quoteName('a.access') . ' IN (' . $groups . ')'); | |||
|
|||
// Join over the users for the author and author_email field. | |||
$query->select("CASE WHEN a.created_by_alias > ' ' THEN a.created_by_alias ELSE u.name END AS author") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please use a.created_by_alias = '' instead of a.created_by_alias > ' '?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK Hannes. I am going to re-do this PR on tomorrow as I deleted the forked repo which I did this PR.
Regarding your suggestion, I think we can do that or use a.created_by_alias != '', not sure what's the prefered way (I took that code from one of the core component If I remember correctly).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joomdonation Can you make this change please?
PR summary:
This PR fixes issue #4623 reported by @javigomez and several coding errors which I found while reviewing code in view feed of com_tags component:
https://github.com/joomla/joomla-cms/blob/staging/components/com_tags/views/tags/view.feed.php#L56
https://github.com/joomla/joomla-cms/blob/staging/components/com_tags/views/tags/view.feed.php#L74
https://github.com/joomla/joomla-cms/blob/staging/components/com_tags/views/tags/view.feed.php#L70
https://github.com/joomla/joomla-cms/blob/staging/components/com_tags/views/tags/view.feed.php#L74
https://github.com/joomla/joomla-cms/blob/staging/components/com_tags/views/tags/view.feed.php#L74
Testing instructions:
For some reasons, these notice errors are not displayed when I tried to view the feed, so it will be difficult for end-users to test this pull request (these errors are logged in error logs of the web server). Maybe one of PLTs (or developers who understand Joomla code) can help reviewing this code and get it merged? @mbabker Could you help review this code? The errors are clearly mentioned above.
For end-users, the only think you can test is: