Closed (fixed)
Project:
Drupal Commons
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
7 May 2013 at 13:38 UTC
Updated:
11 Jun 2013 at 14:00 UTC
Jump to comment: Most recent file
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 commentedComment #2
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 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 commentedCommitted to Commons Like 7.x-3.x.
http://drupalcode.org/project/commons_like.git/commit/4331efc