From 0f0567616c2bc5b6df240a332c1cac76306a934c Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 29 Dec 2021 01:38:05 +0800 Subject: [PATCH] fix create contract bug --- app/Http/Modules/User/ContractModule.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Modules/User/ContractModule.php b/app/Http/Modules/User/ContractModule.php index 7f65ab3..f3f42c3 100644 --- a/app/Http/Modules/User/ContractModule.php +++ b/app/Http/Modules/User/ContractModule.php @@ -138,11 +138,12 @@ class ContractModule extends BaseController ->where('contract_template_obligation_id', $contract_template_obligation_dependency[0]->contract_template_obligation_id) ->first(); + dd($contract); $depend_contract_obligation = ContractObligation:: where('contract_id', $contract->id) ->where('contract_template_obligation_id', $contract_template_obligation_dependency[0]->depend_contract_template_obligation_id) ->first(); -dd($depend_contract_obligation); + $request->request->add([ 'contract_obligation_id' => [$contract_obligation->hash_id], 'depend_contract_obligation_id' => [$depend_contract_obligation->hash_id]