]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1344769 - Cancel editing button loads BugZilla homepage instead of current bug
authorSebastin Santy <sebastinssanty@gmail.com>
Tue, 7 Mar 2017 20:34:03 +0000 (02:04 +0530)
committerDylan William Hardison <dylan@hardison.net>
Tue, 7 Mar 2017 23:09:06 +0000 (18:09 -0500)
extensions/BugModal/web/bug_modal.js

index f65c12be315cc01e781ca7fd9a0ea15e76ef1588..7a608cbe9552533b7144bfec55cdbf1c7f3428fb 100644 (file)
@@ -710,7 +710,7 @@ $(function() {
     $('#cancel-btn')
         .click(function(event) {
             event.preventDefault();
-            window.location.replace($('#this-bug').val());
+            window.location.replace($('#this-bug').attr('href'));
         });
 
     // Open help page