Sanitize screen.current_record if it is already destroyed

Closes #14827
(grafted from 9cb776c27fda504a91312636371273483f404152)

--HG--
branch : 8.0
This commit is contained in:
José Antonio Díaz Miralles
2026-05-10 11:44:04 +02:00
parent ac029c3f22
commit 596c9b8153
+3
View File
@@ -1356,6 +1356,9 @@
});
},
get current_record() {
if (this.__current_record && this.__current_record.destroyed) {
this.__current_record = null;
}
return this.__current_record;
},
set current_record(record) {