Contract Substate is stuck in "Awaiting Review" state
]The issue is Predominantly caused when a user clicks on the "Renew" or "Extend" UI action on a contract.
Upon clicking either of these UI Actions the below UI Pages are loaded :
There is logic hardcoded in the above UI pages which checks to see if the user clicks the "Submit for Review" action or the "Save But Do Not Submit".
1). If the user clicks "Submit for Review" action then the processing script changes the Substate to "Under Review".
2). If the user clicks "Save But Do Not Submit" the processing script changes the Substate to "Awaiting Review". Please see the script below.
if(hold_or_submit == "submit")
cm.substate = 'under_review';
cm.substate = 'awaiting_review';
cm.process = 'extension';
In a rare occasion, the issue can also be reproduced if a user clicks the "Insert" or "insert & Stay" UI actions at the top of the form. There is logic hardcoded in these actions below to set State to "Awaiting Review" if they are clicked: