File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
core-bundle/src/Resources/contao Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 233233 'title ' => 'maxlength="255" ' ,
234234 'alt ' => 'maxlength="255" ' ,
235235 'link ' => array ('attributes ' =>'maxlength="255" ' , 'dcaPicker ' =>true ),
236- 'caption ' => array ('type ' => 'textarea ' )
236+ 'caption ' => array ('type ' => 'textarea ' )
237237 )
238238 ),
239239 'sql ' => "blob NULL "
Original file line number Diff line number Diff line change @@ -146,9 +146,12 @@ public function generate()
146146 {
147147 $ return .= '<label for="ctrl_ ' . $ this ->strId . '_ ' . $ field . '_ ' . $ count . '"> ' . $ GLOBALS ['TL_LANG ' ]['MSC ' ]['aw_ ' . $ field ] . '</label> ' ;
148148
149- if (isset ($ fieldConfig ['type ' ]) && 'textarea ' === $ fieldConfig ['type ' ]) {
149+ if (isset ($ fieldConfig ['type ' ]) && 'textarea ' === $ fieldConfig ['type ' ])
150+ {
150151 $ return .= '<textarea name=" ' . $ this ->strId . '[ ' . $ lang . '][ ' . $ field . ']" id="ctrl_ ' . $ this ->strId . '_ ' . $ field . '_ ' . $ count . '" class="tl_textarea" ' . (!empty ($ fieldConfig ['attributes ' ]) ? ' ' . $ fieldConfig ['attributes ' ] : '' ) . '> ' . $ meta [$ field ] . '</textarea> ' ;
151- } else {
152+ }
153+ else
154+ {
152155 $ return .= '<input type="text" name=" ' . $ this ->strId . '[ ' . $ lang . '][ ' . $ field . ']" id="ctrl_ ' . $ this ->strId . '_ ' . $ field . '_ ' . $ count . '" class="tl_text" value=" ' . StringUtil::specialchars ($ meta [$ field ]) . '" ' . (!empty ($ fieldConfig ['attributes ' ]) ? ' ' . $ fieldConfig ['attributes ' ] : '' ) . '> ' ;
153156 }
154157
You can’t perform that action at this time.
0 commit comments