If you check "Expose sort order" then the sort criteria and sort order will appear as expected (e.g. radio buttons).

If you don't choose "expose sort order" then you get a default select list for the exposed sort, even if you have told BEF to use radio buttons.

In the BEF settings it says:

Expose sort order
Allow the user to choose the sort order. If sort order is not exposed, the sort criteria settings for each sort will determine its order.

So if I don't expose the sort order (i.e. ascending or descending), it should use what I specify in the sort criteria. But then I get a select list and not the radio buttons I told BEF to use.

It should be possible to expose sort criteria without exposing the sort order. For example, I can let people sort alphabetically (ascending) or date (descending). I do not want to expose the order.

For now I can hide the sort order controls with CSS.

Files: 
CommentFileSizeAuthor
#4 1977512-4-better_exposed_filters-exposed-direction-not-required.patch3.51 KBGrayside
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1977512-4-better_exposed_filters-exposed-direction-not-required.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]
#1 1977512-exposed-sort-required.patch3.51 KBPedro Lozano
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1977512-exposed-sort-required.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Comments

Status:Active» Needs review
StatusFileSize
new3.51 KB
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1977512-exposed-sort-required.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

I confirm this problem.

You need to expose the sort order for the 'display as' option to work.

Here is a patch.

Status:Needs review» Needs work

The last submitted patch, 1977512-exposed-sort-required.patch, failed testing.

Priority:Normal» Major

I experienced this same issue when working with the July 6, 2013 version of 7.x-3.x-dev. I applied the patch in #1 above and it now works perfectly. Not sure why the patch didn't pass testing but should definitely be revised and tested again as it seems to solve this (rather serious) issue.

Status:Needs work» Needs review
StatusFileSize
new3.51 KB
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1977512-4-better_exposed_filters-exposed-direction-not-required.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Appears to work for me. Recreated the patch.

git apply worked fine, patch command did not.

Status:Needs review» Needs work

Status:Needs work» Reviewed & tested by the community

Well, the patch doesn't apply by testbot, but does apply manually. Not sure what's going wrong here, but the patch seems to do the trick. Setting to RTBC to surface it for maintainer feedback.

Status:Reviewed & tested by the community» Needs work

Patch 1977512-4-better_exposed_filters-exposed-direction-not-required.patch isn't working here -

patching file better_exposed_filters_exposed_form_plugin.inc
Hunk #1 succeeded at 379 with fuzz 2 (offset -177 lines).
Hunk #2 FAILED at 566.
Hunk #3 FAILED at 684.
Hunk #4 FAILED at 702.

It did fix the issue, but caused an undefined index error:
Notice: Undefined index: #options in form_process_radios()
OMM I reversed the patch and all is well, though the original issue persists.
Respectfully setting to "Needs Work".

Issue summary:View changes

I have just come across this same issue, radio buttons selected, sort order not exposed = dropdown list.

as Rob230 above I can hide sort order with CSS, but it would be better if this worked.

Really happy with this module in general though, very useful..