Jump to content

[BUG 4.7.0] Debug code left in template "\applications\core\dev\html\global\forms\rowDesc.phtml"


teraßyte
Go to solution Solved by Daniel F,

Recommended Posts

This is the template's code in 4.7.0:

{{if 0 && \IPS\Dispatcher::i()->controllerLocation == 'admin' AND !( $object instanceof \IPS\Helpers\Form\Address ) AND !( $object instanceof \IPS\Helpers\Form\Upload ) AND !( $object instanceof \IPS\Helpers\Form\Node ) AND !( $object instanceof \IPS\Helpers\Form\Codemirror )}}<br>{{endif}}
{{if \IPS\Dispatcher::i()->controllerLocation == 'front' AND ( !( $object instanceof \IPS\Helpers\Form\Checkbox ) OR $object instanceof \IPS\Helpers\Form\YesNo )}}<br>{{endif}}
<span class='ipsFieldRow_desc'>
	%s
</span>

 

 

Someone left a 0 that results always in a FALSE value at the start of the IF condition:

0 && 

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...