Fixed some smaller things.

The part where a lists of possible resolution states is being created
needs some more work on it.
diff -ur ori/system/src/lib/product/Daemon/Mantis.pm.in 
dev/system/src/lib/product/Daemon/Mantis.pm.in
--- ori/system/src/lib/product/Daemon/Mantis.pm.in      2007-07-11 
17:27:19.000000000 +0200
+++ dev/system/src/lib/product/Daemon/Mantis.pm.in      2007-07-11 
17:24:57.000000000 +0200
@@ -484,7 +484,7 @@
 
      # Make string values fit the int system of Mantis
      $status = $self->mantis_bug_status_tokey( $status );
-     $resolution = $self->mantis_bug_resolution_string_tokey( $resolution );
+     $resolution = $self->mantis_bug_resolution_tokey( $resolution );
  
      # Find the reporter_id, needed by the comment insertion
      my $sql = "SELECT id from mantis_user_table WHERE username=?";
@@ -530,7 +530,7 @@
 
     my $bug_status = $self->integration_get_bug_status( $bugid );
 
-    return $self->resolution_change_check( $bug_status, $proposed_status, 
$proposed_resolution, $mantis_bug_status_map ), 
$self->mantis_bug_status_tostring( $bug_status );
+    return $self->resolution_change_check( $bug_status, 
$self->mantis_bug_status_tokey($proposed_status), $proposed_resolution, 
$mantis_bug_status_map ), $self->mantis_bug_status_tostring( $bug_status );
 }
 
 
@@ -540,8 +540,14 @@
 sub integration_valid_resolution_states_list {
     my $self = shift;
     my ( $bug_status_string ) = ( @_ );
+    my $resolution_states_list = "";
 
-    return $self->valid_resolution_states_list( $bug_status_string, 
$mantis_bug_status_map );
+    foreach my $resolution_state (@{ $mantis_bug_status_map->{ 
$self->mantis_bug_status_tokey( $bug_status_string ) }->{ 
possible_resolution_states } }) {
+        $resolution_states_list .= $resolution_state.", ";
+    }
+
+    return $resolution_states_list;
+#    return $self->valid_resolution_states_list( $bug_status_string, 
$mantis_bug_status_map );
 }
 
 

Attachment: pgpRwPvLitiKw.pgp
Description: PGP signature

_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

Reply via email to