MSD-12
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:
Ursprung
19aa858b45
Commit
2e5ac861c7
1 geänderte Dateien mit 18 neuen und 16 gelöschten Zeilen
|
@ -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 . ");",
|
||||||
);
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Laden …
In neuem Issue referenzieren