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?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

slowflyer’s picture

Category: support » bug
Devin Carlson’s picture

Component: User interface » Code
Assigned: Unassigned » Devin Carlson
Status: Active » Needs review
FileSize
832 bytes

The 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.

Devin Carlson’s picture

FileSize
103.25 KB
116.08 KB

Two 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).

no_valid_option.png

after_update.png

Devin Carlson’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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