User tests: Successful: Unsuccessful:
Pull Request for Issue #9351 .
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
settings: order = title
example:
tag | count
fauna | 5
flora | 4
nature | 2
oceans | 30In 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!
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Rel_Number | 0 | ⇒ | 9351 |
Relation Type | ⇒ | Pull Request for |
Category | ⇒ | Modules SQL Tags |
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?
I use now Joomla! 3.4.8
$query->order('rand()');
works perfect!
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?
i.e. on 3.5?
i think was merged on 16 Jul 2015 on 3.5 branch
d6f35c3#diff-515fdfdc216c99a6f7795cd28c915887
I try it for 3.5?
yes https://github.com/joomla/joomla-cms/releases/tag/3.5.0-rc 2 days ago
on 3.5 works perfect.
I have tested this item successfully on 28eeb62
Works fine on Joomla! 3.5. Thanks!
I have tested this item successfully on 28eeb62
Works good here. Please see for a CS improvment here: alikon#18
This PR has received new commits.
Status | Pending | ⇒ | Ready to Commit |
As the last changes were just code style I am setting this RTC as we have two good tests
Labels |
Added:
?
|
Milestone |
Added: |
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 |
Labels |
Removed:
?
|
Milestone |
Removed: |
Milestone |
Added: |
Milestone |
Added: |
Milestone |
Removed: |
I have tested this item unsuccessfully on 28eeb62
get error, if enabled "Random" sort option in module. in other cases - works perfect! thanks! Error log:
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9376.