173 instance_data.vault moved up, filter became array and supports multiple field entries
This commit is contained in:
@@ -85,8 +85,8 @@
|
||||
<cfset local.fieldsShortList=""/>
|
||||
|
||||
<!--- теперь добавим в перечень полей, которые нужно оставить, поля для фильтрации и сортировки --->
|
||||
<cfloop collection=#filter# item="item">
|
||||
<cfset var fltr = structFind(filter,item)/>
|
||||
<cfloop array=#filter# index="fltr">
|
||||
<!--- <cfset var fltr = structFind(filter,item)/> --->
|
||||
<cfif listLen(fltr.field,".") EQ 2>
|
||||
<cfset var fld = listGetAt(fltr.field,2,".")/>
|
||||
<cfelseif listLen(fltr.field,".") EQ 1>
|
||||
@@ -202,7 +202,7 @@
|
||||
from (
|
||||
select
|
||||
<!--- из-за фильтраци по вложенному селекту нам нужны значения колонок --->
|
||||
<cfif structIsEmpty(filter)>
|
||||
<cfif arrayIsEmpty(filter)>
|
||||
'' as placeholder
|
||||
<cfelse>
|
||||
#preserveSingleQuotes(definedQueryFields)#
|
||||
|
||||
Reference in New Issue
Block a user