Problem/Motivation
When viewing the My Content tab, users can click the table heading to sort by Title, Type, Published, Author or Last Updated. However, if they select Section the sorting fails to return results.
NOTE: I don't know if this impacts the issue, but in our installation our Editorial Sections are comprised of multiple Taxonomy Vocabularies.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 1243186-disable-section-feild-sort.patch | 837 bytes | dave reid |
| #3 | Screen shot 2011-08-12 at 5.12.07 PM.png | 26.08 KB | agentrickard |
| workbench_mycontent_section_sort.gif | 59.86 KB | cluther |
Comments
Comment #1
dave reidI cannot duplicate this using the latest code will try with a more complex section setup.
Comment #2
stevectorChanging the project for this issue. The "section" column comes from Workbench Access.
Comment #3
agentrickardI'm not seeing that, but I am getting duplicate results when sorting and using the 'menu' scheme.
The duplicates only appear after sorting by section. These bugs are probably related.
Comment #4
agentrickardComment #5
agentrickardI can replicate something similar to the original issue as well. We may just need to remove the sorting feature.
Comment #6
agentrickardFor taxonomy, line 33 is not returning any value, which may be breaking the query.
I've always struggled with that method, which seems very inconsistent in Views.
The table _is_ correctly added when using menus, but I believe the JOINs are causing duplicate records.
Comment #7
dave reidWe should probably just remove the sort-ability considering that multiple sections can be in the field.
Comment #8
dave reidComment #9
dave reidTested #8 manually and ran tests. Committed to Git.
http://drupalcode.org/project/workbench_access.git/commit/d0c2efb
Moving back to needs work for investigation.
Comment #10
robeano commentedWe are not supporting a sort by Section column at this time. The commit from #1243186-9: Workbench: My Content Tab: Sort by Section Fails removes this capability. We're all set here.
Comment #12
ann b commentedThis is just for documentation. I have a view that needs to be sorted by section. In my case only one section can be assigned to a node, so it worked for me:
Thanks to this post for the instructions on how to modify a views query. The database api methods don't work here.