Needs review
Project:
Views PHP
Version:
7.x-1.x-dev
Component:
Sort Handler
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Aug 2012 at 21:40 UTC
Updated:
1 Mar 2021 at 00:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dealancer commentedHere is a patch that solves this issue. Works fine for exposed sorts. For non exposed sort issue still exists, but it looks like not easy to fix.
Comment #2
quickly commentedI was having a similar problem. I had multiple php exposed filters. But always only the last php exposed filter was working. applied the patch in #1 and it solved my problem. Thanks alot @dealancer!
Comment #3
jrlaforge commentedI was using a php filter with the module References to add a view in my node form. This solved the problem (don't have sort problem yet).
Comment #4
kuldeep_kumar commentedI am facing same problem in views version "7.x-3.7", and this patch is not working for this version.
In my view i am using multiple sorting criteria with 1 global php field sorting. Without using global php sorting all other sorting(like title, postdate) are working fine but once i add global php sort, it overrides all sorting criteria.
how can i resolve this problem.
Thanks
Kuldeep
Comment #5
yonailoI am experiencing the same issue as #4
Comment #6
johnpk commentedHey, the recommended 7.x-1.0-alpha1 release works fine, try that one out.
The patch works absolutely fine, fixed a small warning it throws out and updated the patch.
Hope it helps
Comment #7
skylord commentedHm. #6 can't apply on 1.0-alpha3, but #1 does. Patch is not ideal as it can't work as second sort order but it's by design - mixing sql and software sort in different handlers is some kind of semi impossible as i think. :-) Anyways it works OK for me in simple cases, thanks!
Comment #8
skylord commentedReroll #1 for 7.x-1.0-beta1.
Comment #9
liam morlandThanks. Please put this in an issue fork.