Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I created new content types by copying commons_posts and renamed every occurance of "post" with the new type name.
This procedure worked...
But the "commons like" rating widget can't be enabled.
Any idea where to look at?
Comment | File | Size | Author |
---|---|---|---|
#3 | no_valid_option.png | 116.08 KB | Devin Carlson |
#3 | after_update.png | 103.25 KB | Devin Carlson |
#2 | set-node-display-to-valid-option-1989048-2.patch | 832 bytes | Devin Carlson |
Clipboard02.jpg | 20.5 KB | slowflyer |
Comments
Comment #1
slowflyer CreditAttribution: slowflyer commentedComment #2
Devin Carlson CreditAttribution: Devin Carlson commentedThe Rate module currently allows for three node display settings: Do not add automatically, Above the content and Below the content (options 0, 1 and 2 respectively).
The Commons Like feature currently sets the node display setting for the "commons_answer" rate widget to a value of 3 which does not exist. This results in an "illegal choice detected" error when saving the rate widget because there is no "3" option for the node display setting (only 0, 1 and 2 as mentioned above).
The attached patch changes the node display setting for the "commons_answer" rate widget from 3 to 2.
Comment #3
Devin Carlson CreditAttribution: Devin Carlson commentedTwo screenshots demonstrating that the default configuration uses an invalid value (resulting in no radio buttons being selected) and that a valid value is used and pre-selected after the patch in #2 is applied (and, for existing sites, the included update has been run).
Comment #4
Devin Carlson CreditAttribution: Devin Carlson commentedCommitted to Commons Like 7.x-3.x.
http://drupalcode.org/project/commons_like.git/commit/4331efc