027 bug fix
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@
|
|||||||
|
|
||||||
//variables.framework.docs={};
|
//variables.framework.docs={};
|
||||||
variables.framework.docs.APIName="Deck API";
|
variables.framework.docs.APIName="Deck API";
|
||||||
variables.framework.docs.APIVersion="0.026";
|
variables.framework.docs.APIVersion="0.027";
|
||||||
|
|
||||||
variables.framework.globalHeaders = structNew();
|
variables.framework.globalHeaders = structNew();
|
||||||
variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location";
|
variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location";
|
||||||
|
|||||||
@@ -165,11 +165,11 @@
|
|||||||
|
|
||||||
<cftry>
|
<cftry>
|
||||||
<cfquery name="local.qCheck" result="local.result">
|
<cfquery name="local.qCheck" result="local.result">
|
||||||
select io.dt_submit, io.submit_result
|
select io.dt_submit, io.dt_finish, io.submit_result
|
||||||
from instance_operation io
|
from instance_operation io
|
||||||
where io.instance_operation_uid=<cfqueryparam cfsqltype="cf_sql_other" value="#arguments.instanceOperationUid#" null=#!isValid('guid',arguments.instanceOperationUid)#/>
|
where io.instance_operation_uid=<cfqueryparam cfsqltype="cf_sql_other" value="#arguments.instanceOperationUid#" null=#!isValid('guid',arguments.instanceOperationUid)#/>
|
||||||
</cfquery>
|
</cfquery>
|
||||||
<cfif left(local.qCheck.submit_result,1) EQ "2"><!--- 201 etc --->
|
<cfif left(local.qCheck.submit_result,1) EQ "2" AND len(local.qCheck.dt_finish EQ 0)><!--- 201 etc --->
|
||||||
<cfreturn representationOf(this.helper.formatMessage("Operation already started", "Parameter creation disabled for started operation")).withStatus(422)/>
|
<cfreturn representationOf(this.helper.formatMessage("Operation already started", "Parameter creation disabled for started operation")).withStatus(422)/>
|
||||||
</cfif>
|
</cfif>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user