Skip to content

Commit

Permalink
remove data resource description field for the sfb 1368
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya-Oladazimi committed Jul 21, 2022
1 parent cfb455b commit 42e9cff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ckanext/multiuploader/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_upload_limit():


@staticmethod
def which_sfb():
def which_sfb_multiuploader():
'''
Check which sfb server the plugin is runnung in.
'''
Expand Down
2 changes: 1 addition & 1 deletion ckanext/multiuploader/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ def get_blueprint(self):
def get_helpers(self):
return {'cancel_dataset_is_enabled': UploadController.cancel_dataset_plugin_is_enabled,
'get_max_upload_size': UploadController.get_upload_limit,
'which_sfb': UploadController.which_sfb
'which_sfb_multiuploader': UploadController.which_sfb_multiuploader
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@
</div>


{% endblock %}

{% endblock %}
{% block basic_fields_description %}
{{ form.markdown('description', id='field-description', label=_('Description'), placeholder=_('Some useful notes about the data'), value=data.description, error=errors.description) }}
{% if h.which_sfb_multiuploader() != "1368" %}
{{ form.markdown('description', id='field-description', label=_('Description'), placeholder=_('Some useful notes about the data'), value=data.description, error=errors.description) }}
{% endif %}
{% endblock %}


Expand Down

0 comments on commit 42e9cff

Please sign in to comment.