# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
--- sites/all/modules/rules/rules/modules/rules.events.inc
+++ sites/all/modules/rules/rules/modules/rules.events.inc
@@ -29,13 +29,18 @@
   static $account_unchanged;
 
   // We don't support updates for other categories than 'account'
-  if ($op == 'update' && $category == 'account') {
+  if ($op == 'update') {
     // Save the unchanged account for the use with op after_update.
     $account_unchanged = drupal_clone($account);
   }
-  else if ($op == 'after_update' && $category == 'account') {
+   else if ($op == 'after_update') {
+    if ($category == 'account') {
     rules_invoke_event('user_update', array('account' => &$account, 'account_unchanged' => $account_unchanged));
   }
+    else {
+     rules_invoke_event('user_update_profile', array('account' => &$account, 'account_unchanged' => $account_unchanged));
+    }
+  }
\ No newline at end of file
   else if (in_array($op, array('insert', 'login', 'logout', 'view', 'delete'))) {
     // At user creation add the assigned roles which are not available in
     // $account yet to $account, so rules is aware of them.
