allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject allura git commit: [#6016] Fix validation on personal website form
Date Fri, 27 Jan 2017 16:00:04 GMT
Repository: allura
Updated Branches:
  refs/heads/master 7002ae405 -> 887ca5945


[#6016] Fix validation on personal website form


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/887ca594
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/887ca594
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/887ca594

Branch: refs/heads/master
Commit: 887ca5945e0c675f4c805bed4081099f2816e2ce
Parents: 7002ae4
Author: Kenton Taylor <ktaylor@slashdotmedia.com>
Authored: Fri Jan 27 15:29:20 2017 +0000
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Fri Jan 27 11:00:00 2017 -0500

----------------------------------------------------------------------
 Allura/allura/lib/widgets/forms.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/887ca594/Allura/allura/lib/widgets/forms.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/widgets/forms.py b/Allura/allura/lib/widgets/forms.py
index bf2da98..91e7dee 100644
--- a/Allura/allura/lib/widgets/forms.py
+++ b/Allura/allura/lib/widgets/forms.py
@@ -345,7 +345,7 @@ class AddWebsiteForm(ForgeForm):
         newwebsite = ew.TextField(
             label='New website url',
             attrs={'value': ''},
-            validator=fev.URL())
+            validator=fev.URL(not_empty=True))
 
     def display(self, **kw):
         initial_value = kw.get('initial_value', '')


Mime
View raw message