From 20984d983b4f0583a3d55917d7a90bea23ebe952 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 29 Dec 2021 02:23:01 +0800 Subject: [PATCH] fix create contract bug --- app/Http/Modules/User/ContractModule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Modules/User/ContractModule.php b/app/Http/Modules/User/ContractModule.php index c810f8a..f15293e 100644 --- a/app/Http/Modules/User/ContractModule.php +++ b/app/Http/Modules/User/ContractModule.php @@ -140,7 +140,7 @@ class ContractModule extends BaseController ->first(); $depend_contract_obligation = ContractObligation:: - where('contract_template_id', $contarct_template->id) + where('contract_id', $contarct_template->id) ->where('contract_template_obligation_id', $contract_template_obligation_dependency[0]->depend_contract_template_obligation_id) ->first();