bugfix
This commit is contained in:
parent
42186f339c
commit
5a8e220dd9
@ -309,7 +309,7 @@ bricks.DataViewer = class extends bricks.VBox {
|
||||
var title = bricks.app.i18n._("Update record");
|
||||
var form = this.build_update_form(record);
|
||||
var win = this.build_window(icon, title, form);
|
||||
form.bind('submited', this.update_record_finish.bind(this, win));
|
||||
form.bind('submited', this.update_record_finish.bind(this, win, form));
|
||||
}
|
||||
async update_record_finish(win, form, event){
|
||||
await this.renew_record_view(form, this.select_row);
|
||||
|
||||
@ -244,7 +244,7 @@ bricks.FormBase = class extends bricks.Layout {
|
||||
w.focus();
|
||||
return;
|
||||
}
|
||||
if (d[name] === null){
|
||||
if (name != 'id' and d[name] === null){
|
||||
continue;
|
||||
}
|
||||
if (this.origin_data[name] == d[name]){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user