[BUGFIX] ctypes_textpic_image_add_orig_field broken 72/10172/1
authorLorenz Ulrich <lorenz.ulrich@visol.ch>
Thu, 5 Apr 2012 19:13:43 +0000 (21:13 +0200)
committerLorenz Ulrich <lorenz.ulrich@visol.ch>
Thu, 5 Apr 2012 19:13:43 +0000 (21:13 +0200)
If ctypes_textpic_image_add_orig_field is set in extension manager
both fields are shown in content element form but still only images
from tx_damttcontent_files are rendered.

This is a regression of #M16349 where a variable in ext_conf_template.txt
was changed but the condition in localconf.php not.

Change-Id: I6ac476ac7bcac89b39e9eaaf0a11827f948d7c4f
Resolves: #M18484
Releases: 1.3

ext_localconf.php

index e17ee85..8ae0207 100644 (file)
@@ -22,7 +22,7 @@ if ($GLOBALS['T3_VAR']['ext'][$_EXTKEY]['setup']['ctypes_textpic_image_add_ref']
 
                        additional.fileList < temp.tx_dam.fileList
                        additional.filePath < tt_content.image.20.imgPath
-                       '.($GLOBALS['T3_VAR']['ext'][$_EXTKEY]['setup']['ctype_image_add_orig_field']?'':'additional >').'
+                       ' . ($GLOBALS['T3_VAR']['ext'][$_EXTKEY]['setup']['ctypes_textpic_image_add_orig_field'] ? '' : 'additional >') . '
                }
                tt_content.image.20.imgPath >
                tt_content.image.20.imgPath =
@@ -40,7 +40,7 @@ if ($GLOBALS['T3_VAR']['ext'][$_EXTKEY]['setup']['ctypes_textpic_image_add_ref']
 
                        additional.fileList < temp.tx_dam.fileList
                        additional.filePath < tt_content.textpic.20.imgPath
-                       '.($GLOBALS['T3_VAR']['ext'][$_EXTKEY]['setup']['ctype_textpic_add_orig_field']?'':'additional >').'
+                       ' . ($GLOBALS['T3_VAR']['ext'][$_EXTKEY]['setup']['ctypes_textpic_image_add_orig_field'] ? '' : 'additional >') . '
                }
                tt_content.textpic.20.imgPath >
                tt_content.textpic.20.imgPath =