We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63bfe1f commit 6e31ff5Copy full SHA for 6e31ff5
src/resources/views/crud/fields/checklist_dependency.blade.php
@@ -43,7 +43,8 @@
43
$old_secondary_dependency = old_empty_or_null($secondary_dependency['name'], false) ?? false;
44
45
//for update form, get initial state of the entity
46
- if (isset($id) && $id) {
+ if ($id = $crud->getCurrentEntryId()) {
47
+
48
//get entity with relations for primary dependency
49
$entity_dependencies = $entity_model->with($primary_dependency['entity'])
50
->with($primary_dependency['entity'].'.'.$primary_dependency['entity_secondary'])
0 commit comments