Posted by Merco on August 2, 2011 at 4:26pm
2 followers
| Project: | DraggableViews |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Issue Summary
Hi,
I had to implement a solution where the user is allowed to change the sort order of one specific taxonomy sub tree.
So I wrote a mini patch which adds an additional taxonomy term handler.
| Attachment | Size |
|---|---|
| draggableviews_taxonomy_handler.patch | 1.45 KB |
Comments
#1
Hi,
i have tried to apply your patch but got the following error:
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-tax-0-' for key 'PRIMARY': INSERT INTO {draggableviews_structure} (view_name, nid, delta, args, value) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4); Array ( [:db_insert_placeholder_0] => tax [:db_insert_placeholder_1] => 1 [:db_insert_placeholder_2] => 0 [:db_insert_placeholder_3] => [:db_insert_placeholder_4] => 0 ) in drupal_write_record() (line 6851 of /home/yarroha/www/d7/htdocs/includes/common.inc).#2
Sry I can't reproduce your bug.
Could you please provide more information?
#3
Well, i've tried to rebuild view and errors dissapeared. Then i've tried to reinstall clean drupal and test it - all works fine.
views: 7.x-3.0-beta3
draggable views: taken from git (14 august 2011)
#4
Sorry, but when I create a view based on terms I get view not sortable. See attached screenshot. In the meanwhile saving leads to save of terms weights.
Maybe I miss some other patch that should be applied before this one? @Merco please advise.