Needs review
Project:
jPlayer
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jun 2013 at 12:13 UTC
Updated:
7 Jun 2013 at 12:19 UTC
Jump to comment: Most recent file
The protection works if the file field is directly attached to the node. If it is in i.e. a field collection, I get:
Notice: Undefined property: stdClass::$type in jplayer_protect_file_download()
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | field_collection_protect-2014493-1.patch | 723 bytes | old_toby |
Comments
Comment #1
old_toby commentedAs the field is not attached to an entity type but to a field name, I included a check if an entity type is given, and if not, it takes the field_name as the context.