Index: workflow_ng/modules/workflow_ng_content.inc
===================================================================
RCS file: /cvs/drupal/contributions/modules/workflow_ng/workflow_ng/modules/Attic/workflow_ng_content.inc,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 workflow_ng_content.inc
--- workflow_ng/modules/workflow_ng_content.inc	2 Mar 2008 15:52:22 -0000	1.1.2.2
+++ workflow_ng/modules/workflow_ng_content.inc	18 Mar 2008 21:43:10 -0000
@@ -49,9 +49,12 @@ function content_action_info() {
 }
 
 function workflow_ng_action_load_referenced_user($node, $settings) {
-  if ($uid = $node->{$settings['field']}[0]['uid']) {
-    $user = user_load(array('uid' => $uid));
-    return array('#new arguments' => array('referenced_user' => $user));
+  if ($node->{$settings['field']}[0]['uid']) {
+	  $users = array();
+	  foreach($node->{$settings['field']} as $uid) {
+      $users[] = user_load(array('uid' => $uid['uid']));
+    }
+    return array('#new arguments' => array('referenced_user' => $users));
   }
 }
 
Index: workflow_ng/modules/workflow_ng_content_forms.inc
===================================================================
RCS file: /cvs/drupal/contributions/modules/workflow_ng/workflow_ng/modules/Attic/workflow_ng_content_forms.inc,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 workflow_ng_content_forms.inc
--- workflow_ng/modules/workflow_ng_content_forms.inc	4 Jan 2008 23:20:11 -0000	1.1.2.1
+++ workflow_ng/modules/workflow_ng_content_forms.inc	18 Mar 2008 21:43:10 -0000
@@ -21,7 +21,6 @@ function workflow_ng_action_load_referen
     '#title' => t('Field'),
     '#default_value' => $settings['field'],
     '#options' => workflow_ng_content_get_fields_by_type('userreference'),
-    '#description' => t('If the field has multiple values, only the first user will be loaded.'),
     '#required' => TRUE,
   );
   return $form;
Index: workflow_ng/modules/workflow_ng_system.inc
===================================================================
RCS file: /cvs/drupal/contributions/modules/workflow_ng/workflow_ng/modules/Attic/workflow_ng_system.inc,v
retrieving revision 1.1.2.7.2.4
diff -u -p -r1.1.2.7.2.4 workflow_ng_system.inc
--- workflow_ng/modules/workflow_ng_system.inc	2 Mar 2008 15:52:22 -0000	1.1.2.7.2.4
+++ workflow_ng/modules/workflow_ng_system.inc	18 Mar 2008 21:43:10 -0000
@@ -233,6 +233,7 @@ function workflow_ng_action_watchdog($se
 /*
  * Action Implementation: Send a mail to a user
  */
+
 function workflow_ng_action_mail_to_user($user, $settings, &$arguments, &$log) {
   //we also handle $settings['to'] if it's set
   $names = isset($settings['to']) ? array('from', 'subject', 'to') : array('from', 'subject');
@@ -241,14 +242,30 @@ function workflow_ng_action_mail_to_user
   foreach ($names as $key) {
     $$key = str_replace(array("\r", "\n"), '', $$key);
   }
-  $to = isset($to) ? $to : $user->mail;
 
-  if (drupal_mail('workflow_ng_action_mail', $to, $subject, $message, $from)) {
-    watchdog('action', t('Sent email to %recipient', array('%recipient' => ($to == $user->mail) ? $user->name : $to)), WATCHDOG_NOTICE, ($to == $user->mail) ? theme('username', $user) : NULL);
-  }
-  else {
-    watchdog('error', t('Unable to send email to %recipient', array('%recipient' => ($to == $user->mail) ? $user->name : $to)), WATCHDOG_NOTICE, ($to == $user->mail) ? theme('username', $user) : NULL);
-  }
+  if(is_array($user)) {  // we're dealing with a multiple user array
+    $users = $user;
+		foreach($users as $user) {
+			$to = $user->mail;
+			if (drupal_mail('workflow_ng_action_mail', $to, $subject, $message, $from)) {
+		    watchdog('action', t('Sent email to %recipient', array('%recipient' => ($to == $user->mail) ? $user->name : $to)), WATCHDOG_NOTICE, ($to == $user->mail) ? theme('username', $user) : NULL);
+		    drupal_set_message(t('Emails sent successfully'), 'workflow_ng');
+		  }
+		  else {
+			  dsm($user);
+		    watchdog('error', t('Unable to send email to %recipient', array('%recipient' => ($to == $user->mail) ? $user->name : $to)), WATCHDOG_NOTICE, ($to == $user->mail) ? theme('username', $user) : NULL);
+		  }
+		}
+	}
+	else {
+		$to = isset($to) ? $to : $user->mail;
+  	if (drupal_mail('workflow_ng_action_mail', $to, $subject, $message, $from)) {
+	   watchdog('action', t('Sent email to %recipient', array('%recipient' => ($to == $user->mail) ? $user->name : $to)), WATCHDOG_NOTICE, ($to == $user->mail) ? theme('username', $user) : NULL);
+	 }
+	 else {
+	   watchdog('error', t('Unable to send email to %recipient', array('%recipient' => ($to == $user->mail) ? $user->name : $to)), WATCHDOG_NOTICE, ($to == $user->mail) ? theme('username', $user) : NULL);
+	 }
+	}
 }
 
 /*
