[ckan-changes] commit/ckan: amercader: [forms] Fix trivial bug in old formalchemy forms for groups

Bitbucket commits-noreply at bitbucket.org
Thu Jun 23 10:25:54 UTC 2011


1 new changeset in ckan:

http://bitbucket.org/okfn/ckan/changeset/5a7aab1281c3/
changeset:   5a7aab1281c3
user:        amercader
date:        2011-06-23 12:19:31
summary:     [forms] Fix trivial bug in old formalchemy forms for groups
affected #:  1 file (40 bytes)

--- a/ckan/controllers/group_formalchemy.py	Thu Jun 23 10:24:38 2011 +0100
+++ b/ckan/controllers/group_formalchemy.py	Thu Jun 23 11:19:31 2011 +0100
@@ -65,7 +65,7 @@
             for extension in self.extensions:
                 extension.create(group)
             model.repo.commit_and_remove()
-            h.redirect_to(action='read', id=c.groupname)
+            h.redirect_to(controller='group', action='read', id=c.groupname)
 
         if request.params:
             data = forms.edit_group_dict(ckan.forms.get_group_dict(), request.params)
@@ -122,4 +122,4 @@
             for extension in self.extensions: 
                 extension.edit(group)
             model.repo.commit_and_remove()
-            h.redirect_to(action='read', id=c.groupname)
+            h.redirect_to(controller='group', action='read', id=c.groupname)

Repository URL: https://bitbucket.org/okfn/ckan/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list