Fix [ bug #1778 ] Cancel button of edit ref. supplier contract card saves changes instead of cancelling