Text fields that have the "Text processing" setting set to "Plain text" are not available as fields or filters in EFQ Views.

The reason is this code:

  // This will be handled later when a real field props up.
  if (count($field['columns']) > 1 && !$column) {
    return;
  }

The fields in question do have multiple columns (value and format) but the Views data does not contain multiple entries for these fields. This is because of a check in field.info.inc, entity_metadata_field_text_property_callback(): only when text processing is on, the property receives subproperties. So in terms of the comment above: for plain text fields a real field never pops up.

Comments

Jorrit’s picture

I see the code has changed in 7.x-1.x-dev. I will see if it is fixed.

Jorrit’s picture

Assigned: Unassigned » Jorrit

It is still a problem, I will work on a patch and tests.

Jorrit’s picture

Status: Active » Needs review
StatusFileSize
new8.63 KB

Please see attached patch.

majorrobot’s picture

Ah, that explains a lot. This would be an extremely helpful fix. As things stand, fields and filters are severely limited.

asgorobets’s picture

The patch worked for me.

It would be a pretty major feature since there are plenty of multi-column fields.
For example prior to patching the module Address field would always try to work with address.data column which is the last one in columns list (using exposed filter).

Thanks Jorrit,
Well done!

well mannered squirrel’s picture

This patch works for me as well.

Does it require further testing ?

To echo the comments above, this patch adds an important feature and greatly improves the usability of Views w/ MongoDB. I would like it to be added to the trunk as soon as possible.

Thank you

k_zoltan’s picture

Assigned: Jorrit » Unassigned
Priority: Normal » Major
Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Tested on simplytest.me

with this patch https://dexf.ply.st/test
without this patch https://dexm.ply.st/test

This patch clearly does it job and based on comments before me it can be set to RTBC

I also set a higher priority since

"this patch adds an important feature and greatly improves the usability of Views w/ MongoDB."