From d8c4a3aae9a1f2026ea2a8093250ceaba6366613 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Sat, 9 Jan 2021 23:06:36 +0300 Subject: [PATCH] test fixed.. --- app/Abstracts/View/Components/DocumentForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Abstracts/View/Components/DocumentForm.php b/app/Abstracts/View/Components/DocumentForm.php index 9f916a2b1..5f38dccb3 100644 --- a/app/Abstracts/View/Components/DocumentForm.php +++ b/app/Abstracts/View/Components/DocumentForm.php @@ -310,7 +310,7 @@ abstract class DocumentForm extends Base } $parameters = [ - config('type.' . $type. '.route.parameter') => $document->id, + config('type.' . $type. '.route.parameter') => ($document) ? $document->id : 1, ]; $route = $this->getRouteFromConfig($type, 'update', $parameters);