mirror of
https://github.com/NaN-tic/sao-base.git
synced 2023-12-14 03:13:01 +01:00
Compare keyword_open to 1
It is needed to correctly test "0" as false issue5379 review23021002
This commit is contained in:
parent
d8e6e6224c
commit
1e7a72441a
2 changed files with 2 additions and 2 deletions
|
@ -273,7 +273,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.screen.current_view.view_type == 'tree' &&
|
if (this.screen.current_view.view_type == 'tree' &&
|
||||||
('keyword_open' in this.screen.current_view.attributes)) {
|
(this.screen.current_view.attributes.keyword_open == 1)) {
|
||||||
record_ids = this.screen.current_view.selected_records().map(
|
record_ids = this.screen.current_view.selected_records().map(
|
||||||
function(record) { return record.id; });
|
function(record) { return record.id; });
|
||||||
Sao.Action.exec_keyword('tree_open', {
|
Sao.Action.exec_keyword('tree_open', {
|
||||||
|
|
|
@ -953,7 +953,7 @@
|
||||||
},
|
},
|
||||||
default_row_activate: function() {
|
default_row_activate: function() {
|
||||||
if ((this.current_view.view_type == 'tree') &&
|
if ((this.current_view.view_type == 'tree') &&
|
||||||
this.current_view.attributes.keyword_open) {
|
(this.current_view.attributes.keyword_open == 1)) {
|
||||||
Sao.Action.exec_keyword('tree_open', {
|
Sao.Action.exec_keyword('tree_open', {
|
||||||
'model': this.model_name,
|
'model': this.model_name,
|
||||||
'id': this.get_id(),
|
'id': this.get_id(),
|
||||||
|
|
Loading…
Reference in a new issue