Commit 3dc602c0 authored by Antoine Le Gonidec's avatar Antoine Le Gonidec

Fix hiding scripts from archives when shown as children from an archive

parent 6ad746d9
......@@ -93,7 +93,7 @@ class Archive extends Model {
public function getChildrenAttribute() {
$children = $this->children()->get();
$children->each(function ($archive) {
$archive->makeHidden([ 'script', 'size', 'type', 'version', 'parents' ]);
$archive->makeHidden([ 'scripts', 'size', 'type', 'version', 'parents' ]);
$archive->required = (bool) $archive->pivot->required;
});
return $children;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment