Skip to content

Commit bf53c09

Browse files
#53 - fixedFooter is displayed for HasOne, BelongsTo, MorphIne relations
- only set fixedFooter for Grid
1 parent 77175bc commit bf53c09

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Show/Relation.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ class Relation extends Field
5353
*/
5454
public function __construct($name, $builder, $title = '')
5555
{
56-
$this->name = $name;
56+
$this->name = $name;
5757
$this->builder = $builder;
58-
$this->title = $this->formatLabel($title);
58+
$this->title = $this->formatLabel($title);
5959
}
6060

6161
/**
@@ -121,11 +121,10 @@ public function render()
121121

122122
$renderable->setName($this->name)
123123
->setTitle($this->title)
124-
->setRelation($relation);
124+
->setRelation($relation)
125+
->fixedFooter(false);
125126
}
126127

127-
$renderable->fixedFooter(false);
128-
129128
return $renderable->render();
130129
}
131130
}

0 commit comments

Comments
 (0)