Skip to content

Commit c4305a9

Browse files
committed
wip
1 parent db8c2b3 commit c4305a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/View/Components/Dataform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private function getParentCrudEntry()
9090
public function render()
9191
{
9292
// Store the current form ID in the service container for form-aware old() helper
93-
app()->instance('backpack.current_form_modal_id', $this->formId);
93+
app()->instance('backpack.current_form_id', $this->formId);
9494

9595
return view('crud::components.dataform.form', [
9696
'crud' => $this->crud,

src/resources/views/crud/form_content.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<input type="hidden" name="_http_referrer" value="{{ session('referrer_url_override') ?? old('_http_referrer') ?? \URL::previous() ?? url($crud->route) }}">
2-
<input type="hidden" name="_form_id" value="{{ $id ?? 'crudForm' }}">
2+
<input type="hidden" name="_form_id" value="{{ $formId ?? 'crudForm' }}">
33

44
{{-- See if we're using tabs --}}
55
@if ($crud->tabsEnabled() && count($crud->getTabs()))

0 commit comments

Comments
 (0)