Skip to content

Commit 82341ac

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 daa5888 commit 82341ac

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
@@ -1108,7 +1108,8 @@ def __update_record_from_xml(
11081108
return
11091109
else:
11101110
# The xmlid doesn't already exists, nothing to reset
1111-
reset_write_metadata = noupdate = reset_translations = False
1111+
reset_write_metadata = reset_translations = False
1112+
noupdate = True
11121113
fields = None
11131114

11141115
write_data = None

0 commit comments

Comments
 (0)