summaryrefslogtreecommitdiffstats
path: root/extensions/GuidedBugEntry/web/js
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/GuidedBugEntry/web/js')
-rw-r--r--extensions/GuidedBugEntry/web/js/guided.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/GuidedBugEntry/web/js/guided.js b/extensions/GuidedBugEntry/web/js/guided.js
index 5cb2839d2..b28c59d77 100644
--- a/extensions/GuidedBugEntry/web/js/guided.js
+++ b/extensions/GuidedBugEntry/web/js/guided.js
@@ -212,6 +212,8 @@ var product = {
data = YAHOO.lang.JSON.parse(res.responseText);
if (data.error)
throw(data.error.message);
+ if (data.result.products.length == 0)
+ document.location.href = 'enter_bug.cgi?format=guided';
product.details = data.result.products[0];
bugForm.onProductUpdated();
} catch (err) {