Skip to content

Commit

Permalink
fix: empty config info after installation
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Mar 28, 2024
1 parent be4138e commit 00369e0
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions RockMigrations.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -5816,7 +5816,9 @@ private function showConfigInfo($inputfields)
<th>File Config <small>config[-local].php</small></th>
<th>Final Config</th>
</tr>";
$rows = 0;
foreach ($raw as $key => $db) {
$rows++;
if ($key == 'installMacros') continue;
if ($key == 'profile') continue;

Expand All @@ -5838,12 +5840,15 @@ private function showConfigInfo($inputfields)
$table .= "</table></div>";

// add inputfield
$inputfields->add([
'type' => 'markup',
'label' => 'Config Info',
'icon' => 'cogs',
'value' => $table,
]);
// no rows, no field (thats the case right after installation)
if ($rows) {
$inputfields->add([
'type' => 'markup',
'label' => 'Config Info',
'icon' => 'cogs',
'value' => $table,
]);
}
}

private function showConfigInfoDump($data)
Expand Down

0 comments on commit 00369e0

Please sign in to comment.