Commits

Carl Eberhard committed 97d0209

Fix to dbkey select in library upload when 'unspecified' is not in dbkey list

  • Participants
  • Parent commits 9fe9aa6
  • Branches stable

Comments (0)

Files changed (1)

templates/webapps/galaxy/library/common/common.mako

                                     # move unspecified to the first option and set as default if not last_used_build
                                     #TODO: remove when we decide on a common dbkey selector widget
                                     unspecified = ('unspecified (?)', '?')
-                                    dbkeys.remove( unspecified )
-                                    dbkeys.insert( 0, unspecified )
+                                    if unspecified in dbkeys:
+                                        dbkeys.remove( unspecified )
+                                        dbkeys.insert( 0, unspecified )
                                     default_selected = last_used_build or '?'
                                 %>
                                 %for dbkey in dbkeys: