_auto_entitylabel_patternprocessor() assumes that the entity bundle name is always found at $entity->type, which is the case only for node entity types. Should use API function entity_extract_ids() instead. Patch follows.

Comments

peterpoe created an issue. See original summary.

peterpoe’s picture

Status: Active » Needs review
StatusFileSize
new809 bytes
joelpittet’s picture

Status: Needs review » Reviewed & tested by the community

Thanks @peterpoe

anybody’s picture

Perfect, thank you!

joelpittet’s picture

Still using this patch, it's working well. Noticed some new commits to bumping;)

joelpittet’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new745 bytes

Re-rolled with some tweaks to match upstream changes. No need to use isset() since they are passed through as params so they are always set, except NULL so we can test for actual values instead.

joelpittet’s picture

StatusFileSize
new744 bytes

Left a bit of whitespace lint on that last patch.

renatog’s picture

Assigned: Unassigned » renatog
Status: Needs review » Reviewed & tested by the community
Issue tags: +ciandt-contrib

Hi guys.

I applied the patch and works good for me.

Thank you very much @joelpittet.

Good Work.

Regards.

  • RenatoG committed fbfcbba on 7.x-1.x authored by joelpittet
    Issue #2824344 by joelpittet, peterpoe, Anybody, RenatoG: Works only...
renatog’s picture

Status: Reviewed & tested by the community » Fixed

Fixed.

Committed to the dev branch.

Thank you very much for contribution guys.

Regards.

Status: Fixed » Closed (fixed)

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