Skip to content

PostgreSQL - article latest module error#8243

Merged
roland-d merged 3 commits intojoomla:stagingfrom
alikon:patch-47
Nov 3, 2015
Merged

PostgreSQL - article latest module error#8243
roland-d merged 3 commits intojoomla:stagingfrom
alikon:patch-47

Conversation

@alikon
Copy link
Copy Markdown
Contributor

@alikon alikon commented Nov 2, 2015

Steps to reproduce the issue

Set the Articles - Latest module parameter Order to Random Article

Click on Latest Articles item from the fronted left menu All Modules

Actual result

you got an error message

Addictional Comments

similar to #8238,#8240,#8242

#### Steps to reproduce the issue
Set the Articles - Latest module parameter Order  to Random Article

Click on Latest Articles item from the fronted left menu All Modules

#### Actual result
you got an error message

#### Addictional Comments
similar to #8238,#8240
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alikon we need to use here: 'random' => JFactory::getDbo()->getQuery(true)->Rand(), without the ' at the end ;)

Else we get: Parse error: syntax error, unexpected '',' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in JROOT/modules/mod_articles_latest/helper.php on line 106

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zero-24 thx

typo fixed
@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Nov 2, 2015

I have tested this item ✅ successfully on ca3fbb3

Works now 😃 👍


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

@waader
Copy link
Copy Markdown
Contributor

waader commented Nov 2, 2015

I have tested this item ✅ successfully on ca3fbb3

Thanks alikon!


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

@zero-24 zero-24 added this to the Joomla! 3.5.0 milestone Nov 2, 2015
@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Nov 2, 2015

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Nov 2, 2015
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you getting a new DB object when on line 37 there is already a $db. So you can improve this by doing:

$db->getQuery(true)->Rand();

used already present $db object a per comment
@joomla-cms-bot
Copy link
Copy Markdown

This PR has received new commits.

CC: @waader, @zero-24


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

@alikon
Copy link
Copy Markdown
Contributor Author

alikon commented Nov 3, 2015

modifyied for using already present $db object as per @roland-d comment

roland-d added a commit that referenced this pull request Nov 3, 2015
PostgreSQL - article latest module error
@roland-d roland-d merged commit b16f42c into joomla:staging Nov 3, 2015
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Nov 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants