Skip to content

Commit

Permalink
Merge branch 'release/4.2.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
sbusemann committed Jan 30, 2019
2 parents da6425b + 34da376 commit e59608a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions Classes/Domain/Validator/AbstractValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,16 @@ abstract class AbstractValidator extends AbstractValidatorExtbase
/**
* Validation for required
*
* @param string $value
* @param mixed $value
* @return \bool
*/
protected function validateRequired($value)
{
if (!is_object($value)) {
return !empty($value);
} elseif (count($value)) {
} elseif ((is_array($value) || $value instanceof \Countable) && count($value) > 0) {
return true;
} elseif ($value instanceof \DateTime) {
return true;
}
return false;
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
'modify_tables' => '',
'clearCacheOnLoad' => 0,
'lockType' => '',
'version' => '4.2.4',
'version' => '4.2.5',
'constraints' => [
'depends' => [
'typo3' => '8.7.0-8.7.99',
Expand Down
5 changes: 3 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ Offical support (fee-based) via https://www.in2code.de/kontakt

| Version | Date | State | Description |
| ---------- | ---------- | ------------ | -------------------------------------------------------------------------------------------------------------------------- |
| 4.2.4 | 2019-01-24 | Bugfix | Validation failed, if more then one content element was besides femanager plugin |
| 4.2.3 | 2019-01-22 | Security | Don't allow a complete bypass of the validation|
| 4.2.5 | 2019-01-30 | Bugfix | Validation failed for date and some other datetypes |
| 4.2.4 | 2019-01-24 | Bugfix | Validation failed, if more then one content element was besides femanager plugin |
| 4.2.3 | 2019-01-22 | Security | Don't allow a complete bypass of the validation |
| 4.2.2 | 2018-05-11 | Bugfix | Allow filtering in OpenConfirmationView (BE), Fix case sensitive filename for OpenConfirmationView, Support TYPO3 CMS Subtree packages, update documentaion |
| 4.2.1 | 2018-05-04 | Task | Update documenation, fix broken custom validators, enable TS for BE Module, check if admin receive is not empty |
| 4.2.0 | 2018-04-24 | Task | Allow to resend confirmation mail via Backend or Frontend - sponsored by Constructiva Solutions GmbH and in2code GmbH |
Expand Down

0 comments on commit e59608a

Please sign in to comment.