Here is a patch that limits the available views to those that are marked as active (important when allowing any view to be chosen) and sorts the results alphabetically.

CommentFileSizeAuthor
viewreference-list-active-sort.patch675 bytesjpsalter

Comments

danielb’s picture

Status: Needs review » Needs work

This will cause problems for editing an existing node where the view reference was already set to a view that is now disabled.
And who says we shouldn't be allowed to reference a disabled view?

danielb’s picture

I think both these functionalities may be desired, but they should be optionally enabled via field settings to preserve the current behaviour.

danielb’s picture

Issue summary: View changes
Status: Needs work » Fixed

I've added this but wrapped it all in settings.

  • danielb committed c2b3d1c on 7.x-3.x
    Issue #1706900 by jpsalter: Limit view options to those that are active...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.