Issue Bug Closed

#77135<config> of flexform gets rendered allthough <displayCond> is NOT fulfilled

Harald Witt 07/17/16, 12:11 updated 07/29/16, 20:40

Description

The following example will throw an error, because the table tx_dam_mm_ref does not exist, although the displayCond is not fulfilled. This was not the case in earlier versions.

<snippet>
  <damimages>
    <TCEforms>
      <displayCond>FIELD:mode:=:dam</displayCond>
        <label>LLL:EXT:imagecycle/locallang_db.xml:tt_content.pi_flexform.damimages</label>
      <config>
        <type>group</type>
        <form_type>user</form_type>
        <userFunc><![CDATA[EXT:dam/lib/class.tx_dam_tcefunc.php:&tx_dam_tceFunc->getSingleField_typeMedia]]></userFunc>
        <userProcessClass><![CDATA[EXT:mmforeign/class.tx_mmforeign_tce.php:tx_mmforeign_tce]]></userProcessClass>
        <internal_type>db</internal_type>
        <allowed>tx_dam</allowed>
        <allowed_types>gif,jpg,jpeg,png</allowed_types>
        <prepend_tname>1</prepend_tname>
        <MM>tx_dam_mm_ref</MM>
        <MM_foreign_select>1</MM_foreign_select>
        <MM_opposite_field>1</MM_opposite_field>
        <MM_match_fields>
          <ident>imagecycle</ident>
        </MM_match_fields>
        <show_thumbs>1</show_thumbs>
        <size>10</size>
        <maxitems>1000</maxitems>
        <minitems>0</minitems>
        <autoSizeMax>30</autoSizeMax>
      </config>
    </TCEforms>
  </damimages>
</snippet>

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.