213 empty lists repesented as empty arrays (lib/field, lib/rest_api_helper, instance_operation_default)

This commit is contained in:
2026-03-12 14:59:15 +03:00
parent 5f995381df
commit 589b06bcc4
5 changed files with 25 additions and 9 deletions
@@ -840,7 +840,11 @@ arguments.requestArguments.specificationId=usrCustomerInfo.specificationId; //In
where s.svc_id=<cfqueryparam cfsqltype="CF_SQL_INTEGER" value=#arguments.svcId# null=#!isValid("integer", arguments.svcId)#/>
order by r.sort, r.resource_realm
</cfquery> <!--- <cfdump var=#arguments#/> cfdump здесь провоцирует NPE --->
<cfreturn valueList(local.qAvailableResourceRealm.resource_realm)/>
<cfif local.qAvailableResourceRealm.recordCount>
<cfreturn valueList(local.qAvailableResourceRealm.resource_realm)/>
<cfelse>
<cfreturn ""/><!--- иначе для пустого резалтсета генерируется null --->
</cfif>
</cffunction>