Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

mantisbt/core bug_api.php, 1.109, 1.110 print_api.php, 1.178, 1.179: msg#00069

bug-tracking.mantis.cvs

Subject: mantisbt/core bug_api.php, 1.109, 1.110 print_api.php, 1.178, 1.179

Update of /cvsroot/mantisbt/mantisbt/core
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20423/core

Modified Files:
bug_api.php print_api.php
Log Message:
#8269: Add Target Version fields to bug report page.

Index: bug_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/bug_api.php,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -d -r1.109 -r1.110
--- bug_api.php 2 Jul 2007 08:46:55 -0000 1.109
+++ bug_api.php 24 Aug 2007 14:44:46 -0000 1.110
@@ -370,6 +370,13 @@
trigger_error( ERROR_EMPTY_FIELD, ERROR );
}

+ # Only set target_version if user has access to do so
+ if ( access_has_project_level( config_get(
'roadmap_update_threshold' ) ) ) {
+ $c_target_version = db_prepare_string(
$p_bug_data->target_version );
+ } else {
+ $c_target_version = '';
+ }
+
$t_bug_table = config_get(
'mantis_bug_table' );
$t_bug_text_table = config_get(
'mantis_bug_text_table' );
$t_project_category_table = config_get(
'mantis_project_category_table' );
@@ -441,7 +448,7 @@
'$c_platform', '$c_version',
'$c_build',
'$c_profile_id', '$c_summary',
'$c_view_state', '$c_sponsorship_total', '$c_sticky', '',
- ''
+ '$c_target_version'
)";
db_query( $query );

@@ -802,8 +809,16 @@
platform='$c_bug_data->platform',
version='$c_bug_data->version',
build='$c_bug_data->build',
-
fixed_in_version='$c_bug_data->fixed_in_version',
-
target_version='$c_bug_data->target_version',
+
fixed_in_version='$c_bug_data->fixed_in_version',";
+
+ $t_roadmap_updated = false;
+ if ( access_has_project_level( config_get(
'roadmap_update_threshold' ) ) ) {
+ $query .= "
+
target_version='$c_bug_data->target_version',";
+ $t_roadmap_updated = true;
+ }
+
+ $query .= "
view_state='$c_bug_data->view_state',
summary='$c_bug_data->summary',

sponsorship_total='$c_bug_data->sponsorship_total',
@@ -832,7 +847,9 @@
history_log_event_direct( $p_bug_id, 'version',
$t_old_data->version, $p_bug_data->version );
history_log_event_direct( $p_bug_id, 'build',
$t_old_data->build, $p_bug_data->build );
history_log_event_direct( $p_bug_id, 'fixed_in_version',
$t_old_data->fixed_in_version, $p_bug_data->fixed_in_version );
- history_log_event_direct( $p_bug_id, 'target_version',
$t_old_data->target_version, $p_bug_data->target_version );
+ if ( $t_roadmap_updated ) {
+ history_log_event_direct( $p_bug_id, 'target_version',
$t_old_data->target_version, $p_bug_data->target_version );
+ }
history_log_event_direct( $p_bug_id, 'view_state',
$t_old_data->view_state, $p_bug_data->view_state );
history_log_event_direct( $p_bug_id, 'summary',
$t_old_data->summary, $p_bug_data->summary );
history_log_event_direct( $p_bug_id, 'sponsorship_total',
$t_old_data->sponsorship_total, $p_bug_data->sponsorship_total );

Index: print_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/print_api.php,v
retrieving revision 1.178
retrieving revision 1.179
diff -u -d -r1.178 -r1.179
--- print_api.php 14 Aug 2007 01:46:35 -0000 1.178
+++ print_api.php 24 Aug 2007 14:44:46 -0000 1.179
@@ -936,7 +936,7 @@
$commands['UP_FIXED_IN_VERSION'] = lang_get(
'actiongroup_menu_update_fixed_in_version' );
}

- if ( access_has_project_level( config_get(
'roadmap_view_threshold' ), $t_project_id ) ) {
+ if ( access_has_project_level( config_get(
'roadmap_update_threshold' ), $t_project_id ) ) {
$commands['UP_TARGET_VERSION'] = lang_get(
'actiongroup_menu_update_target_version' );
}



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation