? Success
Pull Request for # 9351

User tests: Successful: Unsuccessful:

avatar alikon
alikon
11 Mar 2016

Pull Request for Issue #9351 .

Summary of Changes

queryA = current query
if order = title
select a.tag_id, a.count, a.title, a.access, a.alias from (queryA) A order by a.title DESC

Testing Instructions

settings: order = title

#9351 (comment)

example:

tag | count
fauna | 5
flora | 4
nature | 2
oceans | 30

In module we want to see 3 most popular item, sorting by title.

Expecting:
fauna, flora, oceans ("slice" 3 most popular, and then sort by the title)

Actual Result:

fauna, flora, nature (sort by title, and then slice 3). MOST POPULAR TAG ON THE SITE "OCEANS" NOT SHOWING!

avatar alikon alikon - open - 11 Mar 2016
avatar alikon alikon - change - 11 Mar 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 11 Mar 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 11 Mar 2016
Rel_Number 0 9351
Relation Type Pull Request for
avatar brianteeman brianteeman - change - 11 Mar 2016
Category Modules SQL Tags
avatar vitaly80 vitaly80 - test_item - 11 Mar 2016 - Tested unsuccessfully
avatar vitaly80
vitaly80 - comment - 11 Mar 2016

I have tested this item :red_circle: unsuccessfully on 28eeb62

get error, if enabled "Random" sort option in module. in other cases - works perfect! thanks! Error log:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0, 5' at line 7 SQL=SELECT MAX(`tag_id`) AS tag_id, COUNT(*) AS count,MAX(t.title) AS title,MAX(`t`.`access`) AS access,MAX(`t`.`alias`) AS alias FROM `zwdj7_contentitem_tag_map` AS `m` INNER JOIN `zwdj7_tags` AS `t` ON `tag_id` = t.id INNER JOIN `zwdj7_ucm_content` AS `c` ON `m`.`core_content_id` = `c`.`core_content_id` WHERE `t`.`access` IN (1,1,5) AND `t`.`published` = 1 AND `m`.`type_alias` = `c`.`core_type_alias` AND `c`.`core_state` = 1 AND (`c`.`core_publish_up` = '0000-00-00 00:00:00' OR `c`.`core_publish_up` <= '2016-03-11 23:29:56') AND (`c`.`core_publish_down` = '0000-00-00 00:00:00' OR `c`.`core_publish_down` >= '2016-03-11 23:29:56') GROUP BY `tag_id`,`title`,`access`,`alias` ORDER BY LIMIT 0, 5


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

avatar alikon
alikon - comment - 12 Mar 2016

something went wrong on your side applying the pr i guess ?
when order = rand() alias Random is selected
then this code
https://github.com/alikon/joomla-cms/blob/patch-59/modules/mod_tags_popular/helper.php#L88
should render something like this
ORDER BY RAND() LIMIT 0, 5
and not like
ORDER BY <something is missing> LIMIT 0, 5

wich version of joomla are you using?

avatar vitaly80
vitaly80 - comment - 12 Mar 2016

I use now Joomla! 3.4.8

avatar vitaly80
vitaly80 - comment - 12 Mar 2016
$query->order('rand()');

works perfect!

avatar alikon
alikon - comment - 12 Mar 2016

yes under 3.4.8 cause of this since 3.5
https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/database/query/mysqli.php#L134

can you test under current staging?

avatar vitaly80
vitaly80 - comment - 12 Mar 2016

i.e. on 3.5?

avatar alikon
alikon - comment - 12 Mar 2016

i think was merged on 16 Jul 2015 on 3.5 branch
d6f35c3#diff-515fdfdc216c99a6f7795cd28c915887

avatar vitaly80
vitaly80 - comment - 12 Mar 2016

I try it for 3.5?

avatar vitaly80
vitaly80 - comment - 12 Mar 2016

on 3.5 works perfect.

avatar vitaly80 vitaly80 - test_item - 12 Mar 2016 - Tested successfully
avatar vitaly80
vitaly80 - comment - 12 Mar 2016

I have tested this item :white_check_mark: successfully on 28eeb62

Works fine on Joomla! 3.5. Thanks!


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

avatar zero-24 zero-24 - reference | d3cc11c - 13 Mar 16
avatar zero-24 zero-24 - test_item - 13 Mar 2016 - Tested successfully
avatar zero-24
zero-24 - comment - 13 Mar 2016

I have tested this item :white_check_mark: successfully on 28eeb62

Works good here. Please see for a CS improvment here: alikon#18


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

avatar alikon alikon - reference | e5b4a6a - 13 Mar 16
avatar joomla-cms-bot
joomla-cms-bot - comment - 13 Mar 2016

This PR has received new commits.

CC: @vitaly80, @zero-24


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

avatar brianteeman brianteeman - change - 13 Mar 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 13 Mar 2016

As the last changes were just code style I am setting this RTC as we have two good tests


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

avatar joomla-cms-bot joomla-cms-bot - change - 13 Mar 2016
Labels Added: ?
avatar rdeutz rdeutz - change - 13 Apr 2016
Milestone Added:
avatar rdeutz rdeutz - close - 13 Apr 2016
avatar rdeutz rdeutz - merge - 13 Apr 2016
avatar joomla-cms-bot joomla-cms-bot - close - 13 Apr 2016
avatar rdeutz rdeutz - reference | f841943 - 13 Apr 16
avatar rdeutz rdeutz - merge - 13 Apr 2016
avatar rdeutz rdeutz - close - 13 Apr 2016
avatar rdeutz rdeutz - change - 13 Apr 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-04-13 05:24:55
Closed_By rdeutz
avatar joomla-cms-bot joomla-cms-bot - change - 13 Apr 2016
Labels Removed: ?
avatar rdeutz rdeutz - change - 1 May 2016
Milestone Removed:
avatar rdeutz rdeutz - change - 1 May 2016
Milestone Added:
avatar rdeutz rdeutz - change - 1 May 2016
Milestone Added:
avatar rdeutz rdeutz - change - 1 May 2016
Milestone Removed:

Add a Comment

Login with GitHub to post a comment