fix another url controller bug with '/=foo'
This commit is contained in:
parent
fdbcdf975b
commit
bf533cd2fe
1 changed files with 4 additions and 4 deletions
|
@ -311,10 +311,10 @@ Ox.URL = function(options) {
|
||||||
if (!condition.operator) {
|
if (!condition.operator) {
|
||||||
// missing operator
|
// missing operator
|
||||||
condition = {key: '*', value: condition.value, operator: '='};
|
condition = {key: '*', value: condition.value, operator: '='};
|
||||||
} else if (
|
} else if (!condition.key) {
|
||||||
condition.key
|
// missing key
|
||||||
&& Ox.getPositionById(self.options.findKeys, condition.key) == -1
|
condition.key = '*';
|
||||||
) {
|
} else if (Ox.getPositionById(self.options.findKeys, condition.key) == -1) {
|
||||||
// unknown key
|
// unknown key
|
||||||
condition = {key: '*', value: str, operator: '='};
|
condition = {key: '*', value: str, operator: '='};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue