190 wz fix, instance fix
This commit is contained in:
@@ -213,7 +213,8 @@ arguments.requestArguments.specificationId=usrCustomerInfo.specificationId; //In
|
||||
from svc_operation_cfs_param sop
|
||||
join svc_operation so on (sop.svc_operation_id=so.svc_operation_id)
|
||||
where sop.svc_operation_cfs_param_id=<cfqueryparam cfsqltype="cf_sql_integer" value="#arguments.svcOperationCfsParamId#"/>
|
||||
</cfquery>
|
||||
</cfquery>
|
||||
|
||||
<cfif local.qInstanceService.specification_id NEQ arguments.specificationId>
|
||||
<cfreturn representationOf(this.helper.formatMessage("Instance not accessible", "Instance does not belong to the current specification, contract or contragent")).withStatus(403)/>
|
||||
</cfif>
|
||||
@@ -222,7 +223,7 @@ arguments.requestArguments.specificationId=usrCustomerInfo.specificationId; //In
|
||||
</cfif>
|
||||
<cfif local.qInstanceService.operation NEQ local.qTemplateSvc.operation>
|
||||
<cfreturn representationOf(this.helper.formatMessage("Invalid CFS parameter", "Parameter specified does not belong to this operation")).withStatus(400)/>
|
||||
</cfif>
|
||||
</cfif>
|
||||
|
||||
<cfquery name="local.qSave">
|
||||
insert into instance_operation_cfs_param (
|
||||
|
||||
Reference in New Issue
Block a user