There are 2 problems:

  • It doesn't call node_save() after set the option value to 1/0.
  • It calls function node_get_types() which should be node_type_get_types() in D7.

I've attached my patch.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kevinquillen’s picture

Assigned: Unassigned » kevinquillen
seanr’s picture

Attached patch removes stray dpm from original. Also better patch filename.

seanr’s picture

Priority: Critical » Major
Status: Needs review » Needs work

Tested the patch on a "featured" option. Selected three nodes and attempted to toggle featured to on, edit node afterwards and featured remained unchecked. So this is still needs work.

Note sure this is critical, though, as it doesn't cause a fatal or prevent the rest of the module from working, so downgrading to major. Please don't mark issues critical unless they're really blowing up a site (WSOD, breaking content, etc.).

sokrplare’s picture

Status: Needs work » Reviewed & tested by the community

Tested and working well. Did the same thing @seanr said "Selected three nodes and attempted to toggle featured to on, edit node afterwards and featured remained unchecked." except it was checked for me.

Was getting a WSOD prior to this patch so a huge help - thanks, @zhangx1a0!

kevinquillen’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Status: Reviewed & tested by the community » Fixed

Looks good, tested and working as far as I can see. Thanks all, pushed to dev and will be in upcoming release.

Status: Fixed » Closed (fixed)

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