mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 21:20:45 +00:00
Set tableName if null before filtering (as BackendQueryFilterUtils uses it for some cases now)
This commit is contained in:
@ -171,6 +171,14 @@ public class MemoryRecordStore
|
|||||||
|
|
||||||
for(QRecord qRecord : tableData)
|
for(QRecord qRecord : tableData)
|
||||||
{
|
{
|
||||||
|
if(qRecord.getTableName() == null)
|
||||||
|
{
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// internally, doesRecordMatch likes to know table names on records, so, set if missing. //
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
qRecord.setTableName(input.getTableName());
|
||||||
|
}
|
||||||
|
|
||||||
boolean recordMatches = BackendQueryFilterUtils.doesRecordMatch(input.getFilter(), qRecord);
|
boolean recordMatches = BackendQueryFilterUtils.doesRecordMatch(input.getFilter(), qRecord);
|
||||||
|
|
||||||
if(recordMatches)
|
if(recordMatches)
|
||||||
|
Reference in New Issue
Block a user