Skip to content

Commit

Permalink
Merge pull request #7204 from abretaud/tag_fn
Browse files Browse the repository at this point in the history
[19.01] Data library: fix tag_using_filenames not properly converted to bool
  • Loading branch information
nsoranzo committed Jan 18, 2019
2 parents ed60117 + 06aa30f commit b0b5fb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/actions/library.py
Expand Up @@ -248,7 +248,7 @@ def _make_library_uploaded_dataset(self, trans, params, name, path, type, librar
uploaded_dataset.dbkey = params.get('dbkey', None)
uploaded_dataset.to_posix_lines = params.get('to_posix_lines', None)
uploaded_dataset.space_to_tab = params.get('space_to_tab', None)
uploaded_dataset.tag_using_filenames = params.get('tag_using_filenames', True)
uploaded_dataset.tag_using_filenames = params.get('tag_using_filenames', False)
uploaded_dataset.purge_source = getattr(trans.app.config, 'ftp_upload_purge', True)
if in_folder:
uploaded_dataset.in_folder = in_folder
Expand Down
2 changes: 2 additions & 0 deletions lib/galaxy/webapps/galaxy/api/library_contents.py
Expand Up @@ -230,6 +230,8 @@ def create(self, trans, library_id, payload, **kwd):
# The rest of the security happens in the library_common controller.
real_folder_id = trans.security.encode_id(parent.id)

payload['tag_using_filenames'] = util.string_as_bool(payload.get('tag_using_filenames', None))

# are we copying an HDA to the library folder?
# we'll need the id and any message to attach, then branch to that private function
from_hda_id, from_hdca_id, ldda_message = (payload.pop('from_hda_id', None), payload.pop('from_hdca_id', None), payload.pop('ldda_message', ''))
Expand Down

0 comments on commit b0b5fb4

Please sign in to comment.