Skip to content

Commit c789373

Browse files
committed
[FIX] util.update_record_from_xml
As the purpose of this function is to bypass the `noupdate=1` attribute in the XML declarations, when we create the record, we should flag it as noupdate.
1 parent ebbf944 commit c789373

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/records.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,8 @@ def __update_record_from_xml(
11071107
return
11081108
else:
11091109
# The xmlid doesn't already exists, nothing to reset
1110-
reset_write_metadata = noupdate = reset_translations = False
1110+
reset_write_metadata = reset_translations = False
1111+
noupdate = True
11111112
fields = None
11121113

11131114
write_data = None

0 commit comments

Comments
 (0)