I have a CT cv_book_display, which has three fields of file type.
They are: field_files, field_book_cover, field_service_files.
At the index configuration page i check only attachments_field_files field. However, with enabled Debug extraction of attachments i see, that files, related to field_book_cover are being extracted.
Am i missing something or is this really a bug?
I've taken a peek at this function which is called right before getFileContent($file) function inside alterItems(array &$items).
I suppose, this is the place, where we should check if field was selected. But i'm not sure. Could anyone provide me with a clue?
Update
I suppose, we have to filter fields, which will be used in alterItems(array &$items) function. Check if field is inside search index and only then go to the getFilecontent function.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | unnecessary_fields-2869139-3.patch | 1.44 KB | sardis |
Comments
Comment #2
sardis commentedComment #3
sardis commentedHere's the patch to demonstrate what i mean.
Still, i require some guidance about this. Maybe this is not even required.
Review issue, please.
Comment #4
sardis commentedChanging issue status.
Comment #5
sardis commentedMake proper issue title.
Comment #6
sardis commentedComment #7
izus commentedi just tested and can confirm this is a bug
Comment #9
izus commentedmerged.
Thanks