From c9fe9f9f0095ea8e9fcddfedaceb88ad35aa984e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 1 Oct 2022 14:45:59 +0200 Subject: [PATCH] Add straight values to wizard state view issue11703 review431591006 --- src/wizard.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/wizard.js b/src/wizard.js index e716ef0f4b..7d2fee6914 100644 --- a/src/wizard.js +++ b/src/wizard.js @@ -73,9 +73,14 @@ this.update(view.fields_view, view.buttons); this.screen.new_(false).then(() => { - this.screen.current_record.set_default(view.defaults); - this.update_buttons(); - this.screen.set_cursor(); + this.screen.current_record.set_default( + view.defaults || {}) + .then(() => { + this.screen.current_record.set( + view.values || {}); + this.update_buttons(); + this.screen.set_cursor(); + }); }); this.screen_state = view.state;