Skip to content

Commit

Permalink
[BUGFIX] Allow strict_mode of Mysql for archive field
Browse files Browse the repository at this point in the history
Resolves: #695
  • Loading branch information
georgringer committed Jun 27, 2018
1 parent 83a6109 commit b73b1db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Configuration/TCA/tx_news_domain_model_news.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
'type' => 'input',
'renderType' => 'inputDateTime',
'size' => 30,
'eval' => $configuration->getArchiveDate(),
'eval' => 'int,' . $configuration->getArchiveDate(),
'default' => 0
]
],
Expand Down

2 comments on commit b73b1db

@co-operate
Copy link

Choose a reason for hiding this comment

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

@georgringer
Will turn all given archive dates to 01-01-1970. Suggestion (untested!):
'eval' => $configuration->getArchiveDate() . ',int',

@georgringer
Copy link
Owner Author

Choose a reason for hiding this comment

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

Wanna make a pr?

Please sign in to comment.