-
Notifications
You must be signed in to change notification settings - Fork 1
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
Handle UCM content and not nullable datetime columns, too, and do other fixes from code reviews #41
Handle UCM content and not nullable datetime columns, too, and do other fixes from code reviews #41
Conversation
Co-Authored-By: Quy <quy@fluxbb.org>
@@ -484,8 +481,8 @@ function ($data) use ($db) | |||
switch ($dateFiltering) | |||
{ | |||
case 'range': | |||
$startDateRange = $db->quote($this->getState('filter.start_date_range', $nullDate)); | |||
$endDateRange = $db->quote($this->getState('filter.end_date_range', $nullDate)); | |||
$startDateRange = $db->quote($this->getState('filter.start_date_range')); |
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.
@wilsonge Here and in the following line you have to advise me if that is ok or if there has to be something done for one of the range start and end dates being not specified, or both even. The existing code might do the wrong thing in such case, if that case is allowed.
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.
what are the options for this? We've effectively mandated a.created
and a.modified
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.
no, these here are start and end dates for a range filtering, i think. they are entered in a filter. the date to be fitered for is either created or modified, but my question above refers to that start and end dates of the range for filtering. or am i getting something wrong?
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 can be a.publish_up
(mod_articles_popular and mod_articles_category). Just need to test this still works
Pull Request for joomla#26295.
Summary of Changes
Handle UCM content for articles, too, and apply a few fixes from @Quy 's code review on the CMS PR mentioned above.
Add update script "4.0.0-2018-08-01.sql" for UCM content which comes early enough in the chain for all later PR's being able to use null values for datetimes, too, like it is added to this PR for com content articles.
Add handling of not nullable datetime columns as discussed yesterday on Glip.