From: <jl...@us...> - 2002-08-15 19:16:13
|
Update of /cvsroot/mantisbt/mantisbt In directory usw-pr-cvs1:/tmp/cvs-serv22896 Modified Files: bugnote_add.php bugnote_delete.php Log Message: Padded bugnote ids in the bug history. Index: bugnote_add.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/bugnote_add.php,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- bugnote_add.php 14 Jun 2002 05:36:48 -0000 1.16 +++ bugnote_add.php 15 Aug 2002 19:16:10 -0000 1.17 @@ -55,6 +55,7 @@ # get bugnote id $t_bugnote_id = db_insert_id(); + $t_bugnote_id = str_pd( $t_bugnote_id, '0', 7, STR_PAD_LEFT ); # log new bug history_log_event_special( $f_id, BUGNOTE_ADDED , $t_bugnote_id ); Index: bugnote_delete.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/bugnote_delete.php,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- bugnote_delete.php 14 Jun 2002 05:36:48 -0000 1.13 +++ bugnote_delete.php 15 Aug 2002 19:16:10 -0000 1.14 @@ -15,6 +15,7 @@ check_access( REPORTER ); check_bugnote_exists( $f_bugnote_id ); $c_bugnote_id = (integer)$f_bugnote_id; + $f_bugnote_id = str_pd( $c_bugnote_id, '0', 7, STR_PAD_LEFT ); # grab the bugnote text id $query = "SELECT bugnote_text_id |