Commits

Carl Eberhard committed 2cc8d10

controllers/history: use get_history in switch_to_history

Comments (0)

Files changed (1)

lib/galaxy/webapps/galaxy/controllers/history.py

     @web.expose
     @web.require_login( "switch to a history" )
     def switch_to_history( self, trans, hist_id=None ):
-        decoded_id = trans.security.decode_id(hist_id)
-        hist = trans.sa_session.query( trans.app.model.History ).get( decoded_id )
-        trans.set_history( hist )
+        history = self.get_history( trans, hist_id )
+        trans.set_history( history )
         return trans.response.send_redirect( url_for( "/" ) )
         
     def get_item( self, trans, id ):