When attempting to use this module with Automatic Entity Label, the Title field instead of the Label field is incorrectly hidden. I've attempted to get it to work properly to no avail. Therefore, I started working on adding an option to Bean itself. Here is my patch thus far.

The patch adds a row for the bean_type table
Adds an option on the edit bean page
Saves the value (but doesn't properly pull it up later)

However, I can't get the Bean Entity to recognize my new field. I don't have a solid grasp on Entities, so I'm sure I'm missing something obvious.

Comments

damienmckenna’s picture

Status: Active » Needs work
albert volkman’s picture

StatusFileSize
new732 bytes
new4.83 KB

This module now actually changes the label, but I still can't figure out how to verify the bean's auto label setting.

zd370’s picture

Issue summary: View changes
StatusFileSize
new404 bytes

I understand this thread is little old, but the issue is still not resolved.

@Albert Volkman, thanks for the patch. It may have solved your need, but it seems unnecessary to do all that work. The issue here is with the way Bean exposes its entity info via hook bean_entity_info().

Under entity keys, label is being mapped to the title field. Since, auto_entitylabel module relies on this information, it tried to automate the title field instead of label. The attached patch should solve the issue with Entity Auto Label module.

zd370’s picture

Category: Feature request » Bug report
Status: Needs work » Needs review

The last submitted patch, 2: 1995770-autolabel-2.patch, failed testing.

joelpittet’s picture

Status: Needs review » Reviewed & tested by the community

Wow that seems to make everything better, thank you @kris84

sylus’s picture

I was curious since this was left in the queue for so long is there a chance for any sort of regressions by switching from title to label? The fix seems appropriate for me but would be great if could get a bean maintainer to chime in :)

indytechcook’s picture

indytechcook’s picture

joelpittet’s picture

I'm not quite sure how those issues would react. Though that change really made a world of difference for the auto entity labeling.

Maybe cross post to them to see if this helps their issues as well?

BarisW’s picture

Thanks for the patch. Autocompleted entity reference fields do work with this patch and other widgets still work too. Please commit!

joelpittet’s picture

Bump, this patch is awesome:)

damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Lets see how the fallout goes.

  • DamienMcKenna committed 51ddede on 7.x-1.x authored by kris84
    Issue #1995770 by kris84, Albert Volkman: Use the label as the entity...
joelpittet’s picture

Thank you for taking the plunge! Crosses fingers for no-fallout!

Status: Fixed » Closed (fixed)

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