Permalink
Browse files

Get the default version of Firefox if no version present (bug 663745)

  • Loading branch information...
1 parent 0403b84 commit 746436defa6276dbfc2c4aab81907de9431a810e @tofumatt tofumatt committed Jun 13, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 apps/search/forms.py
@@ -114,7 +114,8 @@ def clean(self):
cleaned['page'] = 1
if not cleaned.get('version'):
- cleaned['version'] = Version(LATEST_BETAS[FIREFOX]).simplified
+ cleaned['version'] = (getattr(FIREFOX, 'default_version', None) or
+ Version(LATEST_BETAS[FIREFOX]).simplified)
elif cleaned['version'] == '--':
cleaned['version'] = ''

0 comments on commit 746436d

Please sign in to comment.