### Eclipse Workspace Patch 1.0
#P scmbugg
Index: src/lib/product/Daemon/Bugtracker.pm.in
===================================================================
RCS file: /projects/scmbug/cvsroot/system/src/lib/product/Daemon/Bugtracker.pm.in,v
retrieving revision 1.30
diff -u -r1.30 Bugtracker.pm.in
--- src/lib/product/Daemon/Bugtracker.pm.in	11 Nov 2007 20:41:07 -0000	1.30
+++ src/lib/product/Daemon/Bugtracker.pm.in	28 Dec 2007 10:01:44 -0000
@@ -500,13 +500,22 @@
     # If the status change is valid, and either the resolution change
     # is valid or there was no proposed resolution (because none is
     # applicable here) the check succeeds.
-    if ( $status_change_is_valid == 1 &&
-	 ( $resolution_change_is_valid == 1 || $proposed_resolution eq "" ) ) {
-	return 0; 
+    if ( $status_change_is_valid == 1 && ( $resolution_change_is_valid == 1 || $proposed_resolution eq "" ) ) {
+        return 0; 
+    
     } elsif ( $status_change_is_valid == 0) {
-	return 1;
+        return 1;
+    
     } else {
-	return 2;
+        
+        # Support data as resolution, e.g. status 8: assigned mail@example.com
+        # status     = assigned
+        # resolution = mail@example.com
+        my $is_data = $bug_status_map->{ $proposed_status_compare_key }->{ accepts_data_as_resolution };
+        if( defined( $is_data) && $is_data) {
+            return 0;
+        }
+        return 2;
     }
 }
 
