cleanup: trim small resource debug comments
This commit is contained in:
@@ -19,8 +19,6 @@
|
||||
|
||||
<cfset var out={}/>
|
||||
|
||||
<!--- <cfset request.locateIamService()/> --->
|
||||
|
||||
<cfquery name="local.qRead" result="local.result">
|
||||
select
|
||||
<m:field_set titleMapOut="local.titleMap" lengthOut="local.fieldCount">
|
||||
@@ -39,8 +37,6 @@
|
||||
where b.bookmark_uid=<cfqueryparam cfsqltype="cf_sql_other" value="#arguments.bookmarkUid#" null=#!isValid('guid',arguments.bookmarkUid)#/>
|
||||
AND (b.contragent_id = <cfqueryparam cfsqltype="cf_sql_integer" value=#arguments.contragentId# null=#!isNumeric(arguments.contragentId)#/> OR b.contragent_id=-1)
|
||||
</cfquery>
|
||||
<!--- <cfdump var=#local.qRead#/><cfabort/> --->
|
||||
|
||||
|
||||
<cfset "out.queryDurationMs"=getTickCount() - request.startTickCount/>
|
||||
<cfset "out.bookmark" = this.helper.appendRecord(structNew("linked"), "", local.titleMap, local.qRead, this.helper.snake2camel)/>
|
||||
@@ -63,10 +59,7 @@
|
||||
<cfargument name="iconUrl" type="string" required=false hint="type:string description: url иконки"/><!--- чистить против XSS --->
|
||||
<cfargument name="sort" type="string" required=false hint="type:integer description: целое число для сортировки"/>
|
||||
<cfargument name="isEnabled" type="string" required=false hint="type:boolean description: вкл"/>
|
||||
<!--- arguments.contragentId injected implicitly --->
|
||||
<!--- arguments.usrId injected implicitly --->
|
||||
|
||||
<!--- ****** проверка уникальности --->
|
||||
<cftry>
|
||||
|
||||
<cfset this.helper.keyExistsAndValid(arguments, "bookmarkUid", "guid")/>
|
||||
@@ -93,14 +86,9 @@
|
||||
,is_enabled=<cfqueryparam cfsqltype="cf_sql_bit" value="#arguments.isEnabled#"/>
|
||||
</cfif>
|
||||
where
|
||||
contragent_id=<cfqueryparam cfsqltype="cf_sql_integer" value="#arguments.contragentId#"/><!--- isolation --->
|
||||
contragent_id=<cfqueryparam cfsqltype="cf_sql_integer" value="#arguments.contragentId#"/>
|
||||
AND bookmark_uid=<cfqueryparam cfsqltype="cf_sql_other" value="#arguments.bookmarkUid#"/>;
|
||||
--select @@rowcount as cnt;
|
||||
</cfquery>
|
||||
|
||||
<!--- <cfif local.qSave.cnt EQ 0>
|
||||
<cfreturn noData().withStatus(404, "Record Not Found") />
|
||||
</cfif> --->
|
||||
|
||||
<cfcatch type="invalidParamValue">
|
||||
<cfreturn representationOf(this.helper.formatBadRequestError(cfcatch)).withStatus(400)/>
|
||||
|
||||
Reference in New Issue
Block a user