Skip to content

Commit

Permalink
Fix(Fields): display generic label if not available
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz committed Dec 15, 2023
1 parent 028dba1 commit 92c1126
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/field.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,8 @@ public function showSummary($container)
echo "<tr class='tab_bg_2' style='cursor:pointer'>";

echo "<td>";
echo "<a href='" . Plugin::getWebDir('fields') . "/front/field.form.php?id={$this->getID()}'>{$this->fields['label']}</a>";
$label = !empty($this->fields['label']) ? $this->fields['label'] : __('No label defined', 'fields');
echo "<a href='" . Plugin::getWebDir('fields') . "/front/field.form.php?id={$this->getID()}'>{$label}</a>";
echo "</td>";
echo "<td>" . $fields_type[$this->fields['type']] . "</td>";
echo "<td>" ;
Expand Down

0 comments on commit 92c1126

Please sign in to comment.