I'm seeing errors like:
•Notice: Undefined property: flag_node::$content_type in flag_abuse_views_default_views() (regel 12 van /var/www/sites/www.bokt.nl/drupal/sites/all/modules/contrib/flag_abuse/includes/flag_abuse.views_default.inc).
•Notice: Undefined property: flag_comment::$content_type in flag_abuse_views_default_views() (regel 12 van /var/www/sites/www.bokt.nl/drupal/sites/all/modules/contrib/flag_abuse/includes/flag_abuse.views_default.inc).
After clearing the cache. Seems like:
http://drupalcode.org/project/flag_abuse.git/blob/refs/heads/7.x-2.x:/in...
Should be changed from:
$type = $flag->content_type;
to
$type = $flag->entity_type;
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | undefined-property-2057901-3.patch | 664 bytes | cossovich |
Comments
Comment #1
RobKoberg commentedHad the same problem and entity_type is what is needed.
Comment #2
no sssweat commentedsame here as per comment #1
Comment #3
cossovich commentedSuggested fix from #1 worked for me. Patch attached.
Comment #4
japerryIt appears that you're using Flag 3.x module, which introduced this change.
Please make sure to test with both Flag 3.x and 2.x to make sure it doesn't break current users of the 2.x version of flag module.
Comment #5
dalinian commentedI have incorporated cossovich's patch and added api checking for views as well and pushed those changes to the 7.x-2.x branch of the git repository. I will try get this into the development release, and hopefully the next rc release soon. I think these changes warrant a new release candidate.
Comment #6
dalinian commentedComment #7
dalinian commentedI've gone ahead and pushed these changes to the most recent alpha2 release.