Hi. First of all, i appreciate for this module.

In the mollom. It shows report form when delete node or comment.
Report form has five options. 'Do not report', 'Span...', 'Obsence...', etc.

In version 6.x, this form shows default value that is don't send feedbank to mollom(first option of form).
But, in the 7.x, report form shows default value that is 'Unwanted, taunting, off-topic' (fifth option of form).

I reviewed code of module. default value is 0. 0 is 'Do not report'. But default checked item is different.
i fixed this problem. I attached the patch.

Comments

sun’s picture

Issue tags: -Mollom

Thanks for reporting this issue and also for the patch! :)

This is actually a (major) bug in Drupal core:
#1381140: A #default_value = 0 for #type radios checks all radios

sun’s picture

Title: Fix the default value in report form. » Wrong default value in report form
Version: 7.x-1.x-dev » 7.x-2.x-dev
Issue tags: +needs backport to 6.x
sun’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new819 bytes

The new issue for Drupal core is #811542: Regression: Required radios throw illegal choice error when none selected.

As this is actually a bug in core and needs to be fixed there, we won't add a test for this to Mollom module.

However, attached patch changes the option value and default value to a simple empty string.

Will commit later if bot comes back green.

sun’s picture

Version: 7.x-2.x-dev » 6.x-2.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

Thanks for reporting, reviewing, and testing! Committed to 7.x-2.x.

A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.

sun’s picture

Status: Patch (to be ported) » Fixed

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

  • Commit caf7d91 on 7.x-2.x, fai6, 8.x-2.x, fbajs, actions by sun:
    - #1221284 by sun, barami: Fixed wrong default value in report form.
    
    

  • Commit caf7d91 on 7.x-2.x, fai6, 8.x-2.x, fbajs, actions by sun:
    - #1221284 by sun, barami: Fixed wrong default value in report form.