Closed (fixed)
Project:
Table Trash
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
26 Mar 2016 at 02:53 UTC
Updated:
14 Apr 2016 at 02:04 UTC
Jump to comment: Most recent
When the global settings have not been saved prior to the first decoration being created, a notice occurs in table_trash.module, line 113.
The patch below solves this by setting 'module' as the default library source to use.
diff --git a/table_trash.install b/table_trash.install
index a7b8855..9c824f8 100644
--- a/table_trash.install
+++ b/table_trash.install
@@ -14,7 +14,11 @@ function table_trash_enable() {
));
if (!variable_get('table_trash_global_settings', FALSE)) {
- variable_set('table_trash_global_settings', array('use_datatables_css' => 1, 'use_table_trash_css' => 1));
+ variable_set('table_trash_global_settings', array(
+ 'load_from' => 'module',
+ 'use_datatables_css' => 1,
+ 'use_table_trash_css' => 1
+ ));
}
}
PS: would have committed this myself, but having issues with Git at the moment.
Comments
Comment #2
rdeboerComment #4
ctrladelGood catch. Committed.