Open pauldmccarthy opened 1 year ago
Thanks for this @pauldmccarthy, this is going to be addressed in release candidate three of v1.5
Hi @ajrbyers, great - thanks for the incredibly speedy reply!
Btw, would you have any idea as to whether my (obviously hacky and insufficient) work-around would be safe to use in the short term?
It should be ok - I think its was just a typo originally. We have some confusion around "Reject" and "Decline" in some places that will need to be cleared up!
Describe the bug Howdy, I experience the following error when a draft decision to reject a paper is accepted:
The
utils.transactional_emails.send_article_decision
function expects to be given adecision
argument with a value ofaccept
,decline
orundecline
. However, thereview.logic.handle_decision_action
function is settingdecision='reject'
.I'm afraid I'm not familiar enough with the code to understand the semantics that differentiate
'decline'
and'reject'
, so am unable to suggest a fix. I have worked around it in my installation by making the following change tosrc/utils/transactional_emails.py
:Janeway version
v1.4.4 (but it looks like this issue is still present in master).
To Reproduce Steps to reproduce the behavior:
Expected behavior
The error should not occur
Screenshots If applicable, add screenshots to help explain your problem.
Front-end Issues
If the issue is front-end specific please add the following details:
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.