From: <jfi...@us...> - 2002-09-27 00:06:50
|
Update of /cvsroot/mantisbt/mantisbt In directory usw-pr-cvs1:/tmp/cvs-serv12825 Modified Files: bugnote_add.php bugnote_delete.php bugnote_delete_page.php Log Message: minor fixes I had to do while testing stuff... these files are by no means converted :) Index: bugnote_add.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/bugnote_add.php,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- bugnote_add.php 21 Sep 2002 10:17:13 -0000 1.25 +++ bugnote_add.php 27 Sep 2002 00:06:47 -0000 1.26 @@ -19,19 +19,18 @@ <?php require_once( 'core.php' ) ?> <?php login_cookie_check() ?> <?php + $f_id = gpc_get_int( 'f_id' ); + $f_private = gpc_get_bool( 'f_private' ); + $f_bugnote_text = gpc_get_string( 'f_bugnote_text', '' ); + project_access_check( $f_id ); check_access( REPORTER ); bug_ensure_exists( $f_id ); - #check variables - check_varset( $f_private, false ); #if it doesn't exist, the checkbox wasn't checked - check_varset( $f_bugnote_text, '' ); - $f_bugnote_text = trim( $f_bugnote_text ); # check for blank bugnote if ( !empty( $f_bugnote_text ) ) { -#@@@ jf - need to add string_prepare_textarea() call or something once that is resolved $result = bugnote_add( $f_id, $f_bugnote_text, (bool)$f_private ); # notify reporter and handler Index: bugnote_delete.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/bugnote_delete.php,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- bugnote_delete.php 21 Sep 2002 10:17:13 -0000 1.22 +++ bugnote_delete.php 27 Sep 2002 00:06:47 -0000 1.23 @@ -12,6 +12,8 @@ <?php require_once( 'core.php' ) ?> <?php login_cookie_check() ?> <?php + $f_bugnote_id = gpc_get_int( 'f_bugnote_id' ); + bugnote_ensure_exists( $f_bugnote_id ); $t_bug_id = bugnote_get_field( $f_bugnote_id, 'bug_id' ); project_access_check( $t_bug_id ); Index: bugnote_delete_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/bugnote_delete_page.php,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- bugnote_delete_page.php 3 Sep 2002 02:41:50 -0000 1.14 +++ bugnote_delete_page.php 27 Sep 2002 00:06:47 -0000 1.15 @@ -12,6 +12,8 @@ <?php require_once( 'core.php' ) ?> <?php login_cookie_check() ?> <?php + $f_bugnote_id = gpc_get_int( 'f_bugnote_id' ); + bugnote_ensure_exists( $f_bugnote_id ); $t_bug_id = bugnote_get_field( $f_bugnote_id, 'bug_id' ); project_access_check( $t_bug_id ); |