Closed (fixed)
Project:
Views If Empty
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Jan 2013 at 06:15 UTC
Updated:
25 May 2013 at 14:51 UTC
I cant figure out no matter what I do I get invalid field selection trying to make this work. I am basically trying to show text if no unread group posts....
Added a filter Node:has new content
added a Global custom text field
then add views if empty, both set to hidden, and I get the error.....
Invalid field selection
Comments
Comment #1
sarhansg commentedSame issue here. I'm using Views 3 with this module. Trying to use this module to show either a video media field (http://drupal.org/project/emfield) or image field.
Comment #2
spinsheet commentedSame here.
I’m using the Views if Empty’ module and when I choose a ‘Views if Empty’ field I always get ‘Invalid field selection’. I’ve tried all sorts of different combinations of fields for ‘If this field is empty’ and then ‘Then output this field’ but the result is always the same, ‘Invalid field selection’.
I’ve tried using fields of group ‘Node’ and fields of type ‘Content’ but nothing seems to work.
What I've now done is create a brand new content type called 'test'. In this content type I created two new CCK fields, field_test_1 and field_test_2. Each of these fields are text fields. I then created a View and added both of those fields to the View and then added a 'Views if empty' field. I had both fields in the options 'If this field is empty' and 'Then output this field' so I chose one for each and still got the message 'Invalid field selection'. There really couldn't be a simpler content type or View so I'm not sure what could be causing this.
Comment #3
benclark commentedA fix for this issue has been committed to the 6.x-1.x branch, and will appear as a new 6.x-1.x-dev release shortly.
In Views 6.x-3.x, the option_definition() method needs to declare a default value for every option used in the field handler. Previously, the "emptyfield" and "outputfield" options were not declared in option_definition(). The handler functioned properly under Views 2.x because this was not a strict requirement.
Closing as fixed.