Closed (fixed)
Project:
OG Vocabulary
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
12 Dec 2012 at 11:43 UTC
Updated:
31 Dec 2012 at 12:00 UTC
Jump to comment: Most recent file
When using the function og_vocab_get_accessible_vocabs without passing any entity type or entity the function throws the next notices:
Notice: Undefined index: entity keys in entity_extract_ids() (line 7636 of /var/www/drupal/includes/common.inc).
Notice: Undefined index: entity keys in entity_extract_ids() (line 7637 of /var/www/drupal/includes/common.inc).
Because those arguments are not mandatory i reset the $bundle variable and if the arguments are passed to the function then we need to use the entity_extract_ids function.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 1864634-og-bundle-4.patch | 439 bytes | bricel |
| #3 | 1864634-og-bundle-3.patch | 1.06 KB | roysegall |
| #2 | 1864634-og-bundle-2.patch | 802 bytes | amitaibu |
| og_vocab_get_accessible_vocabs.patch | 528 bytes | roysegall |
Comments
Comment #1
roysegall commentedComment #2
amitaibuComment #3
roysegall commentedLet's just use the entity and the bundle as arguments.
Comment #4
amitaibuCommitted, thanks.
Comment #5
bricel commentedFix previous patch function call with wrong parameter.
Comment #6
amitaibuCommitted, thanks.