Skip to content
Snippets Groups Projects
Commit 4d2f978b authored by Stephan Großberndt's avatar Stephan Großberndt Committed by Stefan Neufeind
Browse files

[BUGFIX] Fix validation for objects of the same type

The patch http://review.typo3.org/40693 introduced a regression by
replacing a count() check on a countable object with a !empty() check,
which lead to failing validations for objects of the same type.

Since getBaseValidatorConjunction() returns either an object or NULL
check for NULL instead and make the countable call explicit.

getBaseValidatorConjunction() doesn't have a second parameter in the
backport, thus remove that parameter.

Resolves: #70017
Related: #67786
Releases: master
Change-Id: I141ecb0b14f6dcebc2908a27009abc0c3f3ccf75
Reviewed-on: http://review.typo3.org/43564


Reviewed-by: default avatarTorben Hansen <derhansen@gmail.com>
Tested-by: default avatarTorben Hansen <derhansen@gmail.com>
Reviewed-by: default avatarMorton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: default avatarMorton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
parent cb937d81
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment