Skip to content

Commit 6e31ff5

Browse files
committed
fix problem with checklist_dependency field in Update operation
1 parent 63bfe1f commit 6e31ff5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/resources/views/crud/fields/checklist_dependency.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
$old_secondary_dependency = old_empty_or_null($secondary_dependency['name'], false) ?? false;
4444
4545
//for update form, get initial state of the entity
46-
if (isset($id) && $id) {
46+
if ($id = $crud->getCurrentEntryId()) {
47+
4748
//get entity with relations for primary dependency
4849
$entity_dependencies = $entity_model->with($primary_dependency['entity'])
4950
->with($primary_dependency['entity'].'.'.$primary_dependency['entity_secondary'])

0 commit comments

Comments
 (0)