diff --git a/app/adminapi/logic/contract/ContractLogic.php b/app/adminapi/logic/contract/ContractLogic.php index bb0141e4a..303236385 100644 --- a/app/adminapi/logic/contract/ContractLogic.php +++ b/app/adminapi/logic/contract/ContractLogic.php @@ -210,10 +210,11 @@ class ContractLogic extends BaseLogic { $data = Contract::findOrEmpty($params['id']); $project = Project::field('custom_id,name,project_code')->where('id',$data['project_id'])->findOrEmpty(); - $custom = Custom::field('name')->where('id',$project['custom_id'])->findOrEmpty(); + $custom = Custom::field('id,name')->where('id',$project['custom_id'])->findOrEmpty(); $buy_bidding_document = BidBuyBiddingDocument::field('bid_document_no')->where('id',$data['buy_bidding_document_id'])->findOrEmpty(); $business_director = Admin::field('name')->where('id',$data['business_director'])->findOrEmpty(); - $data['custom_name'] = $custom['name']; + $data['custom_id'] = $custom['id']; + $data['custom_name'] = $custom['name']; $data['bid_document_no'] = $buy_bidding_document['bid_document_no']; $data['project_name'] = $project['name']; $data['project_code'] = $project['project_code'];