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

RdeBoer created an issue. See original summary.

rdeboer’s picture

Issue summary: View changes

  • 32c66b9 committed on 7.x-1.x
    Issue #2694587 by RdeBoer: Notice when global settings have not been...
ctrladel’s picture

Status: Active » Fixed

Good catch. Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.