Bug #23913

Regression : Typoscript "required" did not work anymore

Added by Nicolas MATHON over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-11-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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= &lt;div class="legendMedia"&gt;|&lt;/div&gt;
}

Above typoscript code worked before bug 16110 was resolved.

(issue imported from #M16217)


Files

16217_tslib_content.diff (998 Bytes) 16217_tslib_content.diff Administrator Admin, 2010-11-02 18:28

Related issues

Related to TYPO3 Core - Bug #23826: stdWrap "insertData" does not work anymore if using "override" additionallyClosed2010-10-22

Actions
#1

Updated by Jo Hasenau over 11 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.

#2

Updated by Steffen Kamper over 11 years ago

Committed to trunk rev 9262

#3

Updated by Susanne Moog over 11 years ago

  • Target version deleted (4.5.0)

Also available in: Atom PDF