Skip to content

Commit

Permalink
Added a condition to send correct model id when cloning one
Browse files Browse the repository at this point in the history
  • Loading branch information
inietov committed Aug 24, 2023
1 parent 26dd992 commit 950536f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/views/models/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
</div>
</div>

@php
if (is_null($item->id)){
$item->id = $item->getOriginal('id');
}
@endphp
<!-- Custom Fieldset -->
@livewire('custom-field-set-default-values-for-model',["model_id" => $item->id])

Expand Down

0 comments on commit 950536f

Please sign in to comment.