Fix history renaming on Saved Histories grid

This commit is contained in:
Kanwei Li
2010-04-20 15:36:03 -04:00
parent 027ccfe3ae
commit 9d129566c4
+2 -1
View File
@@ -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