Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #119 from MartiSalaMorral/feature/REV-4777-text-in…
Browse files Browse the repository at this point in the history
…fo-sms

Fixed last commit
  • Loading branch information
BadChoice authored Oct 25, 2021
2 parents afc5a83 + 2dd917d commit 7026dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fields/Panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function displayInEdit($object, $inline = false)
{
$html = '<div class="'. $this->panelClass .'" id="panel_'.$this->getId().'" title="'. $this->title .'">';
$html .= $this->getTitle();
return $html . collect($this->fields)->filter->shouldShow($object, 'edit')->reduce(function ($carry, $field) use ($object) {
return $html . collect($this->fields)->filter->shouldShow($object, 'edit')->where('showInEdit', true)->reduce(function ($carry, $field) use ($object) {
return $carry . ($field->shouldHide($object, 'edit') ? '' : $field->displayInEdit($object));
}) .'</div>';
}
Expand Down

0 comments on commit 7026dbc

Please sign in to comment.