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) {
|
||||
// missing operator
|
||||
condition = {key: '*', value: condition.value, operator: '='};
|
||||
} else if (
|
||||
condition.key
|
||||
&& Ox.getPositionById(self.options.findKeys, condition.key) == -1
|
||||
) {
|
||||
} else if (!condition.key) {
|
||||
// missing key
|
||||
condition.key = '*';
|
||||
} else if (Ox.getPositionById(self.options.findKeys, condition.key) == -1) {
|
||||
// unknown key
|
||||
condition = {key: '*', value: str, operator: '='};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue