Fix filter by name
svn: r19496
This commit is contained in:
		| @@ -284,10 +284,12 @@ class SimpleTable(object): | |||||||
|                                          handles=handle) |                                          handles=handle) | ||||||
|             elif objclass == 'Filter': |             elif objclass == 'Filter': | ||||||
|                 from QuickReports import run_quick_report_by_name |                 from QuickReports import run_quick_report_by_name | ||||||
|  |                 if isinstance(handle, list): | ||||||
|  |                     handle = handle[0] | ||||||
|                 run_quick_report_by_name(self.simpledoc.doc.dbstate, |                 run_quick_report_by_name(self.simpledoc.doc.dbstate, | ||||||
|                                          self.simpledoc.doc.uistate,  |                                          self.simpledoc.doc.uistate,  | ||||||
|                                          'filterbyname',  |                                          'filterbyname',  | ||||||
|                                          handle[0]) |                                          handle) | ||||||
|         return False # didn't handle event |         return False # didn't handle event | ||||||
|  |  | ||||||
|     def on_table_click(self, obj): |     def on_table_click(self, obj): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user