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;

CommentFileSizeAuthor
#3 undefined-property-2057901-3.patch664 bytescossovich

Comments

RobKoberg’s picture

Had the same problem and entity_type is what is needed.

no sssweat’s picture

same here as per comment #1

cossovich’s picture

Status: Active » Needs review
StatusFileSize
new664 bytes

Suggested fix from #1 worked for me. Patch attached.

japerry’s picture

Status: Needs review » Needs work

It 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.

dalinian’s picture

Issue summary: View changes

I 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.

dalinian’s picture

Assigned: Unassigned » dalinian
Status: Needs work » Needs review
dalinian’s picture

Status: Needs review » Closed (fixed)

I've gone ahead and pushed these changes to the most recent alpha2 release.