Commit 9f00db94 authored by Carsten  Rose's avatar Carsten Rose
Browse files

AbstractBuildForm.php: fixed problem with uninitialised array element.

parent a064c405
......@@ -2479,7 +2479,7 @@ abstract class AbstractBuildForm {
$flagDelete = Support::findInSet(SUBRECORD_DELETE, $formElement[FE_SUBRECORD_OPTION]) && ($formElement[FE_MODE] != FE_MODE_READONLY);
$editColumnTitle = $flagNew ? $this->createFormLink($formElement, 0, $primaryRecord, $this->symbol[SYMBOL_NEW], 'New') : '';
$editColumnTitle .= ' ' . $formElement[SUBRECORD_COLUMN_TITLE_EDIT];
$editColumnTitle .= ' ' . ($formElement[SUBRECORD_COLUMN_TITLE_EDIT] ?? '');
if ($flagNew || $flagEdit) {
$linkNew = Support::wrapTag('<th data-sorter="false" class="filter-false" data-priority="always">', $editColumnTitle);
......@@ -2499,7 +2499,9 @@ abstract class AbstractBuildForm {
$formName = $formElement[SUBRECORD_PARAMETER_FORM];
$form = $this->dbArray[$this->dbIndexQfq]->sql("SELECT * FROM Form AS f WHERE f." . F_NAME . " LIKE ? AND f.deleted='no'",
ROW_REGULAR, [$formName]);
if (count($form) > 0) { $dndTable = $form[0][F_TABLE_NAME]; }
if (count($form) > 0) {
$dndTable = $form[0][F_TABLE_NAME];
}
}
if ($dndTable) {
......@@ -2514,7 +2516,7 @@ abstract class AbstractBuildForm {
}
$firstRow = isset($formElement[FE_SQL1][0]) ? $formElement[FE_SQL1][0] : array();
$htmlHead = $this->subrecordHead($linkNew, $flagDelete, $formElement[SUBRECORD_COLUMN_TITLE_DELETE], $firstRow, $control);
$htmlHead = $this->subrecordHead($linkNew, $flagDelete, ($formElement[SUBRECORD_COLUMN_TITLE_DELETE] ?? ''), $firstRow, $control);
$htmlBody = '';
foreach ($formElement[FE_SQL1] as $row) {
$rowHtml = '';
......@@ -2582,7 +2584,7 @@ abstract class AbstractBuildForm {
$dataDndApi .= '&' . FE_DND_TABLE . '=' . $dndTable;
$dndAttributes = Support::doAttribute('class', 'qfq-dnd-sort');
$dndAttributes .= $this->evaluate->parse( "{{ '$dataDndApi' AS _data-dnd-api }}").' ';
$dndAttributes .= $this->evaluate->parse("{{ '$dataDndApi' AS _data-dnd-api }}") . ' ';
$dndAttributes .= Support::doAttribute('data-columns', $numColumns);
}
......
Supports Markdown
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