diff --git a/application/template.class.inc.php b/application/template.class.inc.php index e7b30dcae..4ebfdf429 100644 --- a/application/template.class.inc.php +++ b/application/template.class.inc.php @@ -141,7 +141,9 @@ class DisplayTemplate break; case 'itoptoggle': - $oPage->StartCollapsibleSection($aAttributes['name']); + $sName = isset($aAttributes['name']) ? $aAttributes['name'] : 'Tagada'; + $bOpen = isset($aAttributes['open']) ? $aAttributes['open'] : true; + $oPage->StartCollapsibleSection($sName, $bOpen); $oTemplate = new DisplayTemplate($sContent); $oTemplate->Render($oPage, array()); // no params to apply, they have already been applied //$oPage->p('iTop Tab Content:
'.htmlentities($sContent).'
');