1
0
Fork 0
Added: if only one ftp connection is set up hide delete button no matter whether it is active or not. This way "undefined index"-notices should be prevented.
Dieser Commit ist enthalten in:
DSB 2011-08-09 19:23:29 +00:00
Ursprung 19aa858b45
Commit 2e5ac861c7

Datei anzeigen

@ -319,22 +319,24 @@ class Application_Form_Config_Ftp extends Zend_Form_SubForm
) )
); );
$this->addElement( if ($index > 0) {
'button', $this->addElement(
'ftpDelete' . $index, 'button',
array( 'ftpDelete' . $index,
'disableLoadDefaultDecorators' => true, array(
'content' => 'disableLoadDefaultDecorators' => true,
$this->getView()->getIcon('delete') . ' ' . 'content' =>
$this->_lang->getTranslator()->_('L_FTP_CONNECTION_DELETE'), $this->getView()->getIcon('delete') . ' ' .
'decorators' => array('LineEnd'), $this->_lang->getTranslator()->_('L_FTP_CONNECTION_DELETE'),
'escape' => false, 'decorators' => array('LineEnd'),
'label' => '', 'escape' => false,
'class' => 'Formbutton', 'label' => '',
'onclick' => "deleteFtpConnection(" . 'class' => 'Formbutton',
$index . ");", 'onclick' => "deleteFtpConnection(" .
) $index . ");",
); )
);
}
} }
/** /**