Closed (won't fix)
Project:
Sortable Grid Views Plugin
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
11 Jul 2011 at 10:33 UTC
Updated:
19 May 2012 at 08:00 UTC
I am using Sortable Grid to order a View of Taxonomy Terms, which displays node fields from nodes with a relationship of the taxonomy term.
I am getting an error that the following property on line 155 of sgrid_theme.inc is undefined -
$vars['sgrid_nid'] = $view->result[$view->row_index]->nid;
I presume this is because it is presumed the sortable grid view would only be applied to nodes?
Upon trying to save a re-order, the following pdo exception is thrown -
PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'nid' at row 1: INSERT INTO {sgrid} (nid, rank, view_display) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => [:db_insert_placeholder_1] => 0 [:db_insert_placeholder_2] => project_posters_page_1 ) in sgrid_view_sgrid_form_submit() (line 73 of ../../sgrid.module
Comments
Comment #1
Countzero commentedYou're right : Sgrid is only designed to handle node Views as of now.
I turn this issue into a feature request. I'll try to implement the necessary changes ASAP, but can't tell when.
Comment #2
Countzero commentedPlease see if the latest version of Draggable Views, which incorporates a sortable grid layout, suits your need.
And a report about it would be appreciated too.
Comment #3
Countzero commentedDV is probably a best fit for this need. Closing.