Fixes the opening of the comments panel in validations (Closes #1571)
authorBrice Gelineau <brice.gelineau@polytechnique.org>
Wed, 30 Nov 2011 16:25:56 +0000 (17:25 +0100)
committerBrice Gelineau <brice.gelineau@polytechnique.org>
Wed, 30 Nov 2011 16:38:32 +0000 (17:38 +0100)
Signed-off-by: Brice Gelineau <brice.gelineau@polytechnique.org>
ChangeLog
include/validations.inc.php

index cf678cb..d7d6184 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,9 @@ Bug/Wish:
     * Search:
         - #1574: Correctly displays State corps                            -GLN
 
+    * Validations:
+        - #1571: Fixes the opening of the comments panel                   -GLN
+
     * XnetEvent:
         - #1577: Fixes alternative payements given by admins               -GLN
         - #1578: Fixes deletion of people inscriptions                     -GLN
index 35746bd..8f5df65 100644 (file)
@@ -390,7 +390,7 @@ abstract class Validate
 
     public function id()
     {
-        return $this->user->id() . '_' . $this->type . '_' . $this->stamp;
+        return str_replace(" ", "_", $this->user->id() . '_' . $this->type . '_' . $this->stamp);
     }
 
     // }}}