Skip to content

Commit

Permalink
Fixed copy and template bugs for defunct/destroyed (#946)
Browse files Browse the repository at this point in the history
  • Loading branch information
spitfire305 authored Aug 13, 2024
1 parent a60260e commit 1d06e14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/cruds/fields/destroyed.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<x-forms.field field="destroyed" :label="__('locations.fields.is_destroyed')">
<input type="hidden" name="is_destroyed" value="0" />
<x-checkbox :text="__('locations.hints.is_destroyed')">
<input type="checkbox" name="is_destroyed" value="1" @if (old('is_destroyed', $model->isDestroyed() ?? false)) checked="checked" @endif />
<input type="checkbox" name="is_destroyed" value="1" @if (old('is_destroyed', $source->is_destroyed ?? $model->is_destroyed ?? false)) checked="checked" @endif />
</x-checkbox>
</x-forms.field>
2 changes: 1 addition & 1 deletion resources/views/organisations/form/_entry.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<x-forms.field field="defunct" :label="__('organisations.fields.is_defunct')">
<input type="hidden" name="is_defunct" value="0" />
<x-checkbox :text="__('organisations.hints.is_defunct')">
<input type="checkbox" name="is_defunct" value="1" @if (old('is_defunct', $model->is_defunct ?? false)) checked="checked" @endif />
<input type="checkbox" name="is_defunct" value="1" @if (old('is_defunct', $source->is_defunct ?? $model->is_defunct ?? false)) checked="checked" @endif />
</x-checkbox>
</x-forms.field>

Expand Down

0 comments on commit 1d06e14

Please sign in to comment.