Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
goose-life committed Jan 17, 2025
1 parent b9e75a8 commit ec891e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion indigo/analysis/terms/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def find_terms(self, doc):
self.find_term_references(doc, terms)
self.renumber_terms(doc)

def link_terms_in_provision(self, document):
def link_terms_in_document(self, document):
""" Passively link defined terms in a Document while editing in provision mode.
"""
root = etree.fromstring(document.doc.to_xml(encoding='unicode'))
Expand Down
2 changes: 1 addition & 1 deletion indigo_api/views/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def manipulate_xml(self):
finder = plugins.for_document('terms', self.document)
if finder:
if self.serializer.validated_data.get('provision_eid'):
finder.link_terms_in_provision(self.document)
finder.link_terms_in_document(self.document)
else:
finder.find_terms_in_document(self.document)

Expand Down

0 comments on commit ec891e0

Please sign in to comment.