? Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
8 Sep 2018

Pull Request for Issue #22087 #22079

Summary of Changes

quoted the now date
typecast

Testing Instructions

see 22087

avatar alikon alikon - open - 8 Sep 2018
avatar alikon alikon - change - 8 Sep 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Sep 2018
Category Front End Plugins
avatar sanderpotjer
sanderpotjer - comment - 8 Sep 2018

@alikon was not sure if the dateAdd function should return the date quoted by default? If we solve it this way I suggest fixing this for all dateAdd usages and not just this one :)


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

avatar sanderpotjer
sanderpotjer - comment - 8 Sep 2018

@alikon thanks! Can you add the one on line 620 as well of the same file, and the one in public_html/modules/mod_tags_popular/helper.php. I do think we have covered them all with that :-)


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

avatar alikon alikon - change - 8 Sep 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 8 Sep 2018
Category Front End Plugins Modules Front End Plugins
avatar alikon
alikon - comment - 8 Sep 2018

done

avatar sanderpotjer
sanderpotjer - comment - 8 Sep 2018

I have tested this item successfully on 508b296

@alikon great, thanks!


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

avatar sanderpotjer sanderpotjer - test_item - 8 Sep 2018 - Tested successfully
avatar sandewt
sandewt - comment - 9 Sep 2018

Note: it seems that here too a quote is missing

File: ...\plugins\system\privacyconsent\privacyconsent.php
See line 618, ->where($query->dateAdd($now, $period, 'DAY') . ' > ' . $db->quoteName('created'))

See also issue #22079


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

avatar alikon
alikon - comment - 9 Sep 2018

has been quoted with this PR

->where($query->dateAdd($db->quote($now), $period, 'DAY') . ' > ' . $db->quoteName('created'))

avatar alikon alikon - change - 9 Sep 2018
The description was changed
avatar alikon alikon - edited - 9 Sep 2018
avatar sandewt
sandewt - comment - 9 Sep 2018

has been quoted with this PR

Oops, I see, in 39c25c7 8 Sep 2018


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22088.
avatar mbabker mbabker - close - 9 Sep 2018
avatar mbabker mbabker - merge - 9 Sep 2018
avatar mbabker mbabker - change - 9 Sep 2018
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-09-09 17:08:20
Closed_By mbabker

Add a Comment

Login with GitHub to post a comment