From 9d129566c47ab8a75af2b3fb5f2a8ae6c69ca0aa Mon Sep 17 00:00:00 2001 From: Kanwei Li Date: Tue, 20 Apr 2010 15:36:03 -0400 Subject: [PATCH] Fix history renaming on Saved Histories grid --- lib/galaxy/web/controllers/history.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/galaxy/web/controllers/history.py b/lib/galaxy/web/controllers/history.py index a9548f3c8a1..f5c21c84ec9 100644 --- a/lib/galaxy/web/controllers/history.py +++ b/lib/galaxy/web/controllers/history.py @@ -177,7 +177,8 @@ class HistoryController( BaseController, Sharable, UsesAnnotations, UsesHistory operation = kwargs['operation'].lower() if operation == "share or publish": return self.sharing( trans, **kwargs ) - if operation == "rename": + if operation == "rename" and kwargs.get('id', None): # Don't call rename if no ids + del kwargs['name'] # Remove ajax name param that rename method uses return self.rename( trans, **kwargs ) history_ids = util.listify( kwargs.get( 'id', [] ) ) # Display no message by default