[ST2.1 RC2] SQL Proxy accessing incorrect Filter property
You need to access the getter for the anyMatch filter config.
Not sure if this is planned for 2.1 release, but it'd be nice to get this patch applied.
Here is a patch
Code:
diff --git a/vendor/sencha/touch/src/data/proxy/SQL.js b/vendor/sencha/touch/src/data/proxy/SQL.js
index 1df2d47..c6978bd 100644
--- a/vendor/sencha/touch/src/data/proxy/SQL.js
+++ b/vendor/sencha/touch/src/data/proxy/SQL.js
@@ -272,7 +272,7 @@ Ext.define('Ext.data.proxy.SQL', {
property = filter.getProperty();
value = filter.getValue();
if (property !== null) {
- sql += filterStatement + property + ' ' + (filter.anyMatch ? ('LIKE \'%' + value + '%\'') : ('= \'' + value + '\''));
+ sql += filterStatement + property + ' ' + (filter.getAnyMatch() ? ('LIKE \'%' + value + '%\'') : ('= \'' + value + '\''));
filterStatement = ' AND ';
}
}