# HG changeset patch # User bsw # Date 1376255057 -7200 # Node ID 42edba78d9466e6f6277abf0070f3ca64faf6e2e # Parent 08fe525b5bd6ce7a4ecfe9b7794788cf2d84c08a Better error/success messages for admin cancel issue diff -r 08fe525b5bd6 -r 42edba78d946 app/main/admin/_action/cancel_issue.lua --- a/app/main/admin/_action/cancel_issue.lua Sun Aug 11 23:00:55 2013 +0200 +++ b/app/main/admin/_action/cancel_issue.lua Sun Aug 11 23:04:17 2013 +0200 @@ -6,7 +6,7 @@ :exec() if issue.closed then - error("issue is already closed") + slot.put_into("error", _"This issue is already closed.") return false end @@ -25,3 +25,5 @@ issue.admin_notice = admin_notice issue:save() + +slot.put_into("notice", _"Issue has been canceled") \ No newline at end of file