execute lazy instance fields

Signed-off-by: Sathish <sbabu@progress.com>
This commit is contained in:
Sathish 2022-03-10 19:18:27 +05:30
parent 77de4644c5
commit ec47508fbd
No known key found for this signature in database
GPG key ID: FBB120FC6792E144

View file

@ -492,7 +492,10 @@ module FilterTable
result = where(nil)
if custom_property_struct.opts[:lazy]
result.populate_lazy_field(custom_property_struct.field_name, filter_criteria_value)
elsif custom_property_struct.opts[:lazy_instance]
result.populate_lazy_instance_field(custom_property_struct.field_name, filter_criteria_value)
end
result = where(nil).get_column_values(custom_property_struct.field_name) # TODO: the where(nil). is likely unneeded
result = result.flatten.uniq.compact if custom_property_struct.opts[:style] == :simple
result