Skip to content

Commit

Permalink
[Jeli 93] Fix fatal error on "Post Schema" page (#197)
Browse files Browse the repository at this point in the history
---------
Co-authored-by: Phil Tyler <[email protected]>
  • Loading branch information
stovak authored Nov 15, 2024
1 parent 0e35b4a commit 27d9fbd
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ public function buildForm(
'#group' => 'status',
'#weight' => substr($filename, 0, -3) === 'xml' ? -10 : 10,
];

if (is_array($file_contents)) {
$file_contents = json_encode($file_contents);
}

$form[$filename][] = $this->getViewSolrFile($filename, $file_contents, $is_open);
$is_open = FALSE;
}
Expand Down

0 comments on commit 27d9fbd

Please sign in to comment.