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?
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | boolean_formatter-format2type-2031469-7.patch | 1.94 KB | murrayw |
| #4 | boolean_formatter-2031469-4.patch | 1.05 KB | murfi |
Comments
Comment #1
Media Crumb commentedComment #2
Media Crumb commentedMarked as major since it doesn't seem to work on any of my other sites either.
Comment #3
Media Crumb commentedI'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.
Comment #4
murfi commenteda cumulative fix for this bug and the wrong order bug (https://drupal.org/node/2012770)
Comment #5
ronino commented#4 works fine, thank you!
Comment #6
mimrock commented#4 Works for me too.
Comment #7
murrayw commented#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.
Comment #8
mimrock commentedComment #9
maico de jong#7 works for me!
Comment #10
dave reidThe 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