From 51c6ec0d2d8a2474376baa749a7e02372f9240a8 Mon Sep 17 00:00:00 2001 From: Daniel Cothran <daniel@andile.co> Date: Thu, 4 Jan 2018 15:57:13 -0500 Subject: [PATCH] Issue #2926064 by alex_optim: Foreach error when editing style options --- includes/charts.pages.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/includes/charts.pages.inc b/includes/charts.pages.inc index 2e92c25..8493daa 100644 --- a/includes/charts.pages.inc +++ b/includes/charts.pages.inc @@ -302,7 +302,13 @@ function charts_settings_form($form, $defaults = [], $field_options = [], $paren $form['fields']['table'] = [ '#type' => 'table', '#header' => [t('Field Name'), t('Provides Data'), t('Color')], - '#tabledrag' => TRUE, + '#tabledrag' => [ + [ + 'action' => 'order', + 'relationship' => 'sibling', + 'group' => 'weight', + ] + ], ]; $field_count = 0; -- GitLab