Hi,

when I create a view, which displays custom entities (created with ECK) then adding a DraggableViews field will always change the output to the word 'Array'. It seems that DraggableViews is not prepared for custom entities. I also tried the latest dev of ECK.

Comments

ygerasimov’s picture

Priority: Major » Normal

Could you please provide step by step instructions how to reproduce the problem?

I have created entity type (via ECK) and created several entities. But I am able to build draggable view and sort the items and I see the order being saved.

Wolfgang Reszel’s picture

For a block and a page view it works, but not for "Entity content". I suppose it's from the EVA module.

ygerasimov’s picture

Status: Active » Closed (won't fix)

Then it is not related to draggableviews. Lets close this issue.

Wolfgang Reszel’s picture

Okay, I created an issue there: http://drupal.org/node/1611414

estum’s picture

Version: 7.x-2.0 » 6.x-3.5
Status: Closed (won't fix) » Fixed

I had the same problem with Drupal 6.26, Views 2.16 and DraggableViews 3.5, on sorting page it renders 'Array' inside form element.

I've just added missing ampersand to $vars argument, and now sorting page works fine for me:

diff --git a/draggableviews_theme.inc b/draggableviews_theme.inc
index 2217388..fe4d0c3 100644
--- a/draggableviews_theme.inc
+++ b/draggableviews_theme.inc
@@ -285,7 +285,7 @@ function template_preprocess_draggableviews_view_draggabletable(&$vars, $style_p
   drupal_add_css(drupal_get_path('module', 'draggableviews') .'/styles.css');
 }
 
-function template_preprocess_draggableviews_view_draggabletable_form($vars) {
+function template_preprocess_draggableviews_view_draggabletable_form(&$vars) {
   // Get style plugin.
   $style_plugin = $vars['form']['#parameters'][2];
   // Get structured info array.

Status: Fixed » Closed (fixed)

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

EvaldsUrtans’s picture

Thank you, same error appeared for me on Drupal 6 after PHP 5.4 upgrade

Davidz’s picture

Same problem after PHP 5.4 upgrade.
#5 fixed it.

Thanks a lot.