You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there are no organizations defined and a harvest source is created, the forms gives an error, because no organization has been selected. I think this message is confusing, as there is no field for selecting such organization.
I would suggest showing a message if no organization is defined before submitting the form.
{# get out first org from users list only if there is not an existing org #}
{% set selected_org = (existing_org and existing_org == organization.id) or (not existing_org and not data.id and organization.id == organizations_available[0].id) %}
Instead of having only an if, an else could be created, with a link to define an organization, or some kind of help text. An empty readonly selector could also be shown.
The text was updated successfully, but these errors were encountered:
When there are no organizations defined and a harvest source is created, the forms gives an error, because no organization has been selected. I think this message is confusing, as there is no field for selecting such organization.
I would suggest showing a message if no organization is defined before submitting the form.
ckanext-harvest/ckanext/harvest/templates/source/new_source_form.html
Lines 61 to 78 in 2910693
Instead of having only an
if
, anelse
could be created, with a link to define an organization, or some kind of help text. An empty readonly selector could also be shown.The text was updated successfully, but these errors were encountered: