diff --git a/app/Services/FeatureService.php b/app/Services/FeatureService.php index 0962b180a0..eafae3a346 100644 --- a/app/Services/FeatureService.php +++ b/app/Services/FeatureService.php @@ -315,6 +315,7 @@ public function updateFeature($feature, $data, $user, $parent = null) 'display_separate' => $alt ? (isset($data['alt']['display_separate'][$key]) ? 1 : 0) : 1, 'image' => isset($data['alt']['image'][$key]) ? $data['alt']['image'][$key] : null, 'remove_image' => $alt ? (isset($data['alt']['remove_image'][$key]) ? 1 : 0) : 0, + 'is_visible' => $alt ? (isset($data['alt']['is_visible'][$key]) ? 1 : 0) : 0, ]; // If the ID is already set, modify the existing feature diff --git a/resources/views/admin/features/create_edit_feature.blade.php b/resources/views/admin/features/create_edit_feature.blade.php index 1b21943eb7..2d7eaa2bec 100644 --- a/resources/views/admin/features/create_edit_feature.blade.php +++ b/resources/views/admin/features/create_edit_feature.blade.php @@ -150,6 +150,10 @@ {!! Form::checkbox('alt[display_separate]['.$altType->id.']', 1, $altType->display_separate, ['class' => 'form-check-input', 'data-toggle' => 'toggle']) !!} {!! Form::label('alt[display_separate]', 'Display Separately', ['class' => 'form-check-label ml-3']) !!} {!! add_help('If enabled, this trait will be displayed separately from its parent in general trait listings, including species\' visual trait indexes if enabled.') !!} +