Commit bda5b16d authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Fix a bug in Article, clean erratum has to be called before is_published.

parent 9276849b
......@@ -1175,18 +1175,19 @@ class Articles(PublicationsTool):
if self.dbg:
print "select article record"
if not record.is_published():
self.logs[-1].reject(MSG_NO_EDITOR, record.year())
return False
try:
self.check.clean_erratum(record)
if not record.is_published():
self.logs[-1].reject(MSG_NO_EDITOR, record.year())
return False
self.check.my_authors(record,
reference=self._my_author_list(record),
cmpFct=family_name_fr)
self.check.oai(record)
self.check.clean_erratum(record)
self.check.submitted(record)
self.check.year(record)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment