I create a rule that when a user make a node sticky he will lose 10 points. Every time I toggle a node to sticky or unsticky, there are notices:
•Notice: Undefined property: stdClass::$Publish 在 _userpoints_node_action_has_status_changed() (行 423 在 D:\Drupal\www\drupal7\sites\all\modules\userpoints_node_action\userpoints_node_action.inc).
•Notice: Undefined property: stdClass::$Promote 在 _userpoints_node_action_has_status_changed() (行 423 在 D:\Drupal\www\drupal7\sites\all\modules\userpoints_node_action\userpoints_node_action.inc).
•Notice: Undefined property: stdClass::$Publish 在 _userpoints_node_action_has_status_changed() (行 423 在 D:\Drupal\www\drupal7\sites\all\modules\userpoints_node_action\userpoints_node_action.inc).
•Notice: Undefined property: stdClass::$Promote 在 _userpoints_node_action_has_status_changed() (行 423 在 D:\Drupal\www\drupal7\sites\all\modules\userpoints_node_action\userpoints_node_action.inc).

Comments

BillyMG’s picture

Priority: Critical » Normal
Status: Active » Needs review

Good catch. Please try the latest DEV version of the module once Drupal uploads it to see if that fixes it for you.

robin_jx’s picture

I updated the module just now, and found the bug is fixed. Thanks for your job!

BillyMG’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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