Bug #23913
closedRegression : Typoscript "required" did not work anymore
0%
Description
Since bug 16110 have been resolved, typoscript conditions did not work anymore.
For example, in the following typoscript code, <div class="legendMedia"> will wrap the field_imagelegend field even if field_imagelegend is empty.
10 = COA
10.stdWrap.wrap = <div class="containerMedia">|</div>
10.stdWrap.fieldRequired = field_image
10 {
10 = IMAGE
10.altText.field = field_imagealt
10.required = 1
10.file {
XY = [10.w],[10.h]
import = uploads/tx_templavoila/
import.current = 1
import.listNum = 0
maxW = 172
minW = 0
maxH = 300
minH = 0
}
20 = TEXT
20.field = field_imagelegend
20.required = 1
20.wrap= <div class="legendMedia">|</div>
}
Above typoscript code worked before bug 16110 was resolved.
(issue imported from #M16217)
Files
Updated by Jo Hasenau about 14 years ago
The check for the recursionlevel had been moved into the foreach loop, but should have been placed after it.
Atached patch fixes this problem.