Commit c3c100425c46949687107da3b6eabe7c674092ba

Make sure the paragraph is also a translation and not just the document
timApp/accesshelper.py
(1 / 1)
  
215215 orig_doc = Document(orig_doc_id)
216216 orig_par = orig_doc.get_paragraph(orig_par_id)
217217 pars = dereference_pars([orig_par], source_doc=doc)
218 ctx_doc = doc if orig_doc.get_docinfo().is_original_translation else orig_doc
218 ctx_doc = orig_doc if (not orig_doc.get_docinfo().is_original_translation and orig_par.is_translation()) else doc
219219 for p in pars:
220220 if p.get_id() == par_id:
221221 return ctx_doc, p