Skip to content
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

Conversation

richard67
Copy link

@richard67 richard67 commented Sep 27, 2019

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.

@richard67 richard67 changed the title Handle UCM content Handle UCM content and do other fixes from code reviews Sep 27, 2019
@richard67 richard67 changed the title Handle UCM content and do other fixes from code reviews Handle UCM content and not nullable datetime columns, too, and do other fixes from code reviews Sep 28, 2019
@@ -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'));
Copy link
Author

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.

Copy link
Owner

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

Copy link
Author

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?

Copy link
Owner

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

@wilsonge wilsonge merged commit 7a6f2cb into wilsonge:bugfix/date-columns Sep 28, 2019
@richard67 richard67 deleted the 4.0-dev-bugfix-datetime-columns-mod-4 branch September 28, 2019 20:22
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.

3 participants