Found this module recently and was SUPER excited about the custom fields. However when installed it will only show the yes/no options. If cannot select any of the following:

On / Off
Enabled / Disabled
1 / 0
✔ / ✖
Custom (user-defined on/off values)

If I do, the display still shows as Yes/No. The module reports no errors, nothing is logged in watchdog, and yet no matter what i try i cant get this to work. I've updated, reinstalled, etc. This doesn't work on display suite fields OR views either. I'm surprised no one else has run into this issue. Any ideas?

Comments

Media Crumb’s picture

Priority: Normal » Major
Media Crumb’s picture

Marked as major since it doesn't seem to work on any of my other sites either.

Media Crumb’s picture

I'm getting this error in watchdog...

Notice: Undefined index: type in boolean_formatter_field_formatter_settings_form() (line 72 of /public_html/drupal/sites/all/modules/contrib/boolean_formatter/boolean_formatter.module).

Although I'm not sure that this is the full reason for the issue. I'm not sure where the custom settings or other formats are saved in the DB but I don't see anything there either. Its like nothing gets saved and so it defaults to Yes/No.

murfi’s picture

StatusFileSize
new1.05 KB

a cumulative fix for this bug and the wrong order bug (https://drupal.org/node/2012770)

ronino’s picture

#4 works fine, thank you!

mimrock’s picture

Status: Active » Reviewed & tested by the community

#4 Works for me too.

murrayw’s picture

#4 didn't quite work. I still had "format" coming up as the key in $settings. I had to change the default key in the formatter from 'format' across to 'type'. This is what works for me.

mimrock’s picture

Status: Reviewed & tested by the community » Needs review
maico de jong’s picture

#7 works for me!

dave reid’s picture

Status: Needs review » Fixed

The proper fix was to rename the settings form element to $settings['format'] rather than using $settings['type'] because the setting key in boolean_formatter_field_formatter_info() was in fact 'format' and not 'type'.

Fixed with http://drupalcode.org/project/boolean_formatter.git/commit/8dfa3a8

Status: Fixed » Closed (fixed)

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