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

Countzero’s picture

Title: Undefined property NID in sgrid_theme.inc » Add support for Taxonomy Views
Assigned: Unassigned » Countzero
Category: bug » feature
Status: Active » Needs work

You'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.

Countzero’s picture

Status: Needs work » Postponed (maintainer needs more info)

Please 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.

Countzero’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

DV is probably a best fit for this need. Closing.