Don't consider as unique clause with nested target
issue4552 review11161002
This commit is contained in:
1 parent
e8e6fecc2d
commit
ca9a85b5ec
2 files changed
+3
No files matched your search
@@ -1846,6 +1846,7 @@
|
||||
unique_value: function(domain) {
|
||||
if ((domain instanceof Array) &&
|
||||
(domain.length == 1) &&
|
||||
!domain[0][0].contains('.') &&
|
||||
(domain[0][1] == '=')) {
|
||||
return [true, domain[0][1], domain[0][2]];
|
||||
} else {
|
||||
|
||||
@@ -1878,6 +1878,8 @@
|
||||
QUnit.ok(!unique_value(domain)[0]);
|
||||
domain = [['a', '=', 1], ['a', '=', 2]];
|
||||
QUnit.ok(!unique_value(domain)[0]);
|
||||
domain = [['a.b', '=', 1]];
|
||||
QUnit.ok(!unique_value(domain)[0]);
|
||||
});
|
||||
|
||||
QUnit.test('DomainInversion evaldomain', function() {
|
||||
|
||||
Reference in new issue
Block a user