Just come across what looks like a bug to me but asking the question instead of submitting a patch.

line 1228 of oa_core/includes/oa_core.util.inc within oa_core_entity_build_display

this line

$display['title'] = t('A @type', array('@type' => array('@type' => node_type_get_name($entity->type))));

I am getting into it and it only returns me A looks like it's been wrapped in an extra array. Should it not be

$display['title'] = t('A @type', array('@type' => node_type_get_name($entity->type)));

That way the output is then eg A Group

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lionslair created an issue. See original summary.

mpotter’s picture

That definitely looks like a bug. Go ahead and post a patch so you'll get credit for it and I'll commit it.

That code is only called when listing entities that the user doesn't have permission to view so it's probably never gotten tested.

lionslair’s picture

Will try to do on the weekend else will do on Monday.
In my use case that is pretty much the situation which is how I found it. But wanted to ask before calling it a bug.

Will reply to this with patch in next few days.

lionslair’s picture

Attached is the patch file. This should work.

lionslair’s picture

Status: Active » Needs review
lionslair’s picture

Two releases have now been made since I submitted this. Is there an issue with the patch provided?

mpotter’s picture

Status: Needs review » Fixed

Sorry for the delay on this. Committed to c9d16e1 in oa_core. The last two releases were security-related releases.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.