[BUGFIX] Custom validators may be overriden by default validators
authorPhilipp Gampe <dev@philippgampe.info>
Wed, 14 Mar 2012 10:04:37 +0000 (11:04 +0100)
committerPhilipp Gampe <dev@philippgampe.info>
Sat, 24 Mar 2012 01:29:03 +0000 (02:29 +0100)
commitf384daebf5b70506d2a1e230be130f48cfef856b
tree1105f3987147f90e8c3862eb5eafc752b019857d
parentdd2e1722cf62fabda0c49493d430ea39c6c09404
[BUGFIX] Custom validators may be overriden by default validators

The softref parser always puts the type to 'db' for db records.
Due to the abstract validators fetchType method just returning this
type, the type gets overriden if any validator without own fetchType
method is evaluated later.
The solution is to store the type inside the record array, so that the
returned type is the last special type found.

Change-Id: I5d831c4f25c37da2606ad772e91bcfa11891e1df
Fixes: #34566
Releases: 4.5,4.6,4.7,6.0
typo3/sysext/linkvalidator/classes/class.tx_linkvalidator_processor.php