From ebe7a05493fa2c2e31ae05220b0d27ac1350473f Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 29 Dec 2021 02:22:35 +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 4b11b43..c810f8a 100644 --- a/app/Http/Modules/User/ContractModule.php +++ b/app/Http/Modules/User/ContractModule.php @@ -139,7 +139,7 @@ class ContractModule extends BaseController ->where('contract_template_obligation_id', $contract_template_obligation_dependency[0]->contract_template_obligation_id) ->first(); - $depend_contract_obligation = ContractTemplateObligation:: + $depend_contract_obligation = ContractObligation:: where('contract_template_id', $contarct_template->id) ->where('contract_template_obligation_id', $contract_template_obligation_dependency[0]->depend_contract_template_obligation_id) ->first();