Comments

calebtr’s picture

Title: update 'self' sort handler in db » update 'self' sort handler setting in db
Status: Active » Needs review
StatusFileSize
new2.47 KB

And here is a patch.

calebtr’s picture

Properly choosing the key for the DraggableViews sort.

calebtr’s picture

I had forgotten to pass the $view to _draggableviews_get_draggable_sort().

istryker’s picture

This needs to go into 7.x-2.1 for sure

istryker’s picture

joelpittet’s picture

istryker’s picture

Re-roll

istryker’s picture

I do not have an old site to test this, what is the best way to test if this update_hook() works.

calebtr’s picture

Perhaps:

- fresh installation of drupal
- devel gen some nodes
- clone the draggableviews repo and check out the commit before a5e5103 (https://www.drupal.org/node/1900068)
- create a draggable view and save an order
- check out HEAD on the draggableviews repo
- apply the patch here
- run the update
- verify that view order is intact

istryker’s picture

Status: Needs review » Needs work
StatusFileSize
new4.76 KB

revert to ab246d4 (one before), tried attached view and it does not get rid of the 'self' in the default display with patch 8