This commit is contained in:
yumoqing 2025-09-26 09:02:46 +08:00
parent 42186f339c
commit 5a8e220dd9
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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]){