? 295075_report_all_conflicts.patch
? cvs.txt
? dif
cvs diff: Diffing .
Index: resource_conflict.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/resource_conflict/resource_conflict.module,v
retrieving revision 1.1.2.5.2.13
diff -u -p -r1.1.2.5.2.13 resource_conflict.module
--- resource_conflict.module	16 Aug 2008 00:56:42 -0000	1.1.2.5.2.13
+++ resource_conflict.module	17 Aug 2008 17:30:19 -0000
@@ -102,7 +102,15 @@ function _resource_conflict_display_conf
           '%end' => $end,
         )
       );
-      form_set_error($conflicting_node->title, $error);
+
+      // This is a bit of a hack, but there's no way with FAPI to have
+      // multiple form errors on the same field.  So, we just pass in
+      // a bogus (but unique) ID for each error message, to ensure
+      // that all conflicts are reported simultaneously.  We use the
+      // nid of the conflicting resource (thing) appended with the nid
+      // of the conflicting node (reservation event).
+      $conflict_id = $conflicting_resource->nid . '_' . $conflicting_node->nid;
+      form_set_error($conflict_id, $error);
     }
   }
 }
