After the settings are exported and imported (i.e. using Features), the widget setting for exposing all, some, or no inline fields is stored as an integer. The module currently requires that this value is stored as a string to be recognized by the logic that configures the inline editing form provided by the module.

This issue is caused by the use of === instead of == in a few places. There doesn't seem to be harm in making these comparisons non-strict, especially since the variables are also checked to exist (with isset).

Comments

arithmetric’s picture

Status: Active » Needs review
StatusFileSize
new1.37 KB

Attached is a patch that changes these comparisons to the non-strict operator.

ey’s picture

Status: Needs review » Reviewed & tested by the community

I've reviewed and tested the patch. It does simply what it promises. Please commit, this is actually a simple but an important bug.

gapple’s picture

juampynr’s picture

This patch solved a hairy issue I was facing with Features not reverting field instance settings as expected. Thanks!

scottrigby’s picture

Yep, was about to upload the same patch. #1 RTBC FTW.

delzhand’s picture

Just found this independently and came to submit an identical patch. Any hope of getting this committed?

alesr’s picture

It's crazy to have issues like this and no maintainers.
We could be creating a separate github project page and fork it there but it's better to bring this project back to life.
Let's get this issue https://www.drupal.org/project/projectownership/issues/2948719 to the Drupal.org managers (IRC, etc) and sign up if you want to co-maintain it.

damienmckenna’s picture

This is also partly covered by #2227171: Extra fields and fields not being filtered, which also adds support for extra fields.

damienmckenna’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev
Status: Reviewed & tested by the community » Fixed
Parent issue: » #3153994: Plan for File Entity Inline 7.x-1.0

Reviewed the changes and I agree this would be a useful change. Committed.

Status: Fixed » Closed (fixed)

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