Skip to content

Commit

Permalink
Fix Sublayout issue showing in widgets tab #768
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Aug 26, 2024
1 parent 850a026 commit 18af49a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/fields/astroidlayoutdata.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ protected function getInput() {
foreach ($section['rows'] as $row) {
foreach ($row['cols'] as $col) {
foreach ($col['elements'] as $element) {
if ($form_template[$element['type']]['info']['element_type'] == 'widget') {
if (isset($form_template[$element['type']]) && $form_template[$element['type']]['info']['element_type'] == 'widget') {
$article_data = Path::clean(JPATH_SITE . '/media/templates/site/' . $article_layout->template . '/astroid/article_widget_data/'. $id . '_' . $element['id'] . '.json');
if (file_exists($article_data)) {
$widget_data = file_get_contents($article_data);
Expand Down

0 comments on commit 18af49a

Please sign in to comment.