Download & Extend

table is undraggable when view is exported to code

Project:DraggableViews
Version:6.x-3.2-beta6
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

for some reason i cannot use draggable views from an export. i have to make a change to it, clear my cache and it's only after that that it allows me to sort the results.

AttachmentSize
drag_export_test.views_default.inc_.txt3.57 KB

Comments

#1

Status:active» needs review

definitely needs review

#2

I have replicated this problem on 6.x.3.2-beta-5 and the latest 6.x.3.2-dev -- when I export a view using DraggableViews to code, I have to go in and change the style plugin and change it back or change a setting for the style plugin. Based on very minimal debugging, it appears the that the draggable views info is not properly attaching to the view in this scenario.

#3

Version:6.x-3.2-beta1» 6.x-3.2-beta5
Status:needs review» active

I can reliably reproduce this as well. I have to edit any setting within the view, save it (so that it's in the database and not just cached by views from the exported code) and finally clear my sites cache to get the view operating. I've seen this in 6.x-3.2-beta5 as well as 6.x-3.x-dev. Unfortunately I don't think I'll get anytime within the next few weeks to look into this.

#4

Status:active» closed (duplicate)

1) There is nothing showing up except the submit-button?
2) ..or does everything show up except the drag handles?

Presuming this issue is (1) I suppose this is a duplicate of #541130: Theme registery issues

#5

Version:6.x-3.2-beta5» 6.x-3.2-beta6

Ok now I understand. This isn't a duplicate of #541130: Theme registery issues.
I've never tried before to export a draggable view to code (without saving the view to the database). DraggableViews denied rendering all tabledrag-stuff when the view doesn't have a vid. Once you hit the submit button everything is fine.

With the attached patch I consequently use the view-name instead of the vid. So also non-saved (..to code exported) views are supported. The database columns changed, so update.php must be called. The update script ports all vid's to the appropriate view-names.

Greetings,
sevi

EDIT: Patch already committed to DRUPAL-6--3 branch (see latest dev version)

AttachmentSize
draggableviews-386782.patch 13.02 KB

#6

Status:closed (duplicate)» needs review

#7

Status:needs review» fixed

Since this patch is already part of the recommended DRUPAL-6--3-2 version I'll set the status to fixed. Open a new issue if needed.

#8

Status:fixed» closed (fixed)

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