Commit 44b7d693 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Refs #7849. Fixes bug undefined index.

parent d1bb65ef
Pipeline #2328 passed with stages
in 2 minutes and 38 seconds
......@@ -3129,10 +3129,12 @@ abstract class AbstractBuildForm {
$disabled = ($formElement[FE_MODE] == FE_MODE_READONLY) ? 'disabled' : '';
// Check if a custom text right beside the trash symbol is given.
$trashText = '';
if (!empty($formElement[FE_FILE_TRASH_TEXT])) {
$formElement[FE_FILE_TRASH_TEXT] = ' ' . $formElement[FE_FILE_TRASH_TEXT];
$trashText = ' ' . $formElement[FE_FILE_TRASH_TEXT];
}
$deleteButton = Support::wrapTag("<button type='button' class='btn btn-default delete-file $disabled' $disabled data-sip='$sipUpload' name='delete-$htmlFormElementName'>", $this->symbol[SYMBOL_DELETE] . $formElement[FE_FILE_TRASH_TEXT]);
$deleteButton = Support::wrapTag("<button type='button' class='btn btn-default delete-file $disabled' $disabled data-sip='$sipUpload' name='delete-$htmlFormElementName'>", $this->symbol[SYMBOL_DELETE] . $trashText);
if (Support::isEnabled($formElement, FE_FILE_DOWNLOAD_BUTTON)) {
if (is_readable($value)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment