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
Comment #1
BillyMG commentedGood catch. Please try the latest DEV version of the module once Drupal uploads it to see if that fixes it for you.
Comment #2
robin_jx commentedI updated the module just now, and found the bug is fixed. Thanks for your job!
Comment #3
BillyMG commented