Commits

pudo  committed ce36014

handle string values in list fields

  • Participants
  • Parent commits 971f0f6

Comments (0)

Files changed (1)

File ckanext/hrifi/forms.py

         def render(self, options, **kwargs):
             from pylons.i18n import _, ungettext, N_, gettext
             selected = self._get_value()
+            if isinstance(selected, basestring):
+                selected = [selected]
             select_field_selected = []
             for key, value in options: 
                 if key in selected: