Skip to content

Commit

Permalink
[#3766] add field_name to image_upload macro when uploading resources
Browse files Browse the repository at this point in the history
  • Loading branch information
tino097 authored and smotornyuk committed Sep 25, 2017
1 parent c6072a7 commit e49686e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/templates/package/snippets/resource_form.html
Expand Up @@ -21,7 +21,7 @@
{% set is_upload = (data.url_type == 'upload') %}
{{ form.image_upload(data, errors, field_url='url', field_upload='upload', field_clear='clear_upload',
is_upload_enabled=h.uploads_enabled(), is_url=data.url and not is_upload, is_upload=is_upload,
upload_label=_('Data'), url_label=_('URL'), placeholder=_('http://example.com/external-data.csv')) }}
upload_label=_('Data'), url_label=_('URL'), placeholder=_('http://example.com/external-data.csv'), field_name='name') }}
{% endblock %}

{% block basic_fields_name %}
Expand Down

0 comments on commit e49686e

Please sign in to comment.