|
|
mantisbt/core current_user_api.php,1.23,1.24 constant_inc.php,1.33,1.34: msg#00027
|
Subject: |
mantisbt/core current_user_api.php,1.23,1.24 constant_inc.php,1.33,1.34 |
Update of /cvsroot/mantisbt/mantisbt/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16626
Modified Files:
current_user_api.php constant_inc.php
Log Message:
Fix: 0004609: 'one-off' Temporary Filters should store state in Database
Uses token_api
Index: current_user_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/current_user_api.php,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- current_user_api.php 19 Nov 2004 12:29:00 -0000 1.23
+++ current_user_api.php 11 Dec 2004 20:20:12 -0000 1.24
@@ -94,7 +94,11 @@
$t_filter = '';
if ( !is_blank( $f_filter_string ) ) {
- $t_filter = unserialize( $f_filter_string );
+ if( is_numeric( $f_filter_string ) ) {
+ $t_filter = unserialize( token_get_value(
$f_filter_string ) );
+ } else {
+ $t_filter = unserialize( $f_filter_string );
+ }
} else if ( !filter_is_cookie_valid() ) {
return false;
} else {
Index: constant_inc.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/constant_inc.php,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- constant_inc.php 5 Oct 2004 21:10:14 -0000 1.33
+++ constant_inc.php 11 Dec 2004 20:20:12 -0000 1.34
@@ -302,5 +302,9 @@
# bugnote types
define( 'BUGNOTE', 0 );
define( 'REMINDER', 1 );
-
+
+ # token types
+ define( 'TOKEN_UNKNOWN', 0 );
+ define( 'TOKEN_FILTER', 1 );
+
?>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
|
| |