forked from mantisbt-plugins/agileMantis
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This version contains smaller bugfixes regarding compatibility of java applets with the newest web browser versions. Changes: - Appletwindow is now resizable - agileMantis icon for expert applets appears in the taskbar Bugfixes: - error message showing when starting an applet was removed - update statistics now correctly recalculates the values
- Loading branch information
Showing
21 changed files
with
1,897 additions
and
1,189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ function register() { | |
$this->name = "agileMantis"; | ||
$this->description = "Enables Scrum on your MantisBT-Installation"; | ||
$this->page = "info"; | ||
$this->version = "2.1.2"; | ||
$this->version = "2.2"; | ||
$this->requires = array( "MantisCore" => "1.2.5" ); | ||
$this->author = "gadiv GmbH"; | ||
$this->contact = "[email protected]"; | ||
|
@@ -77,7 +77,6 @@ function config() { | |
'gadiv_workday_in_hours' => '8', | ||
'gadiv_storypoint_mode' => 0, | ||
'gadiv_fibonacci_length' => 12, | ||
'gadiv_taskboard' => 0, | ||
'gadiv_sprint_length' => 28, | ||
'gadiv_scrum' => 0, | ||
'gadiv_daily_scrum' => 0, | ||
|
@@ -93,6 +92,7 @@ function config() { | |
function events () { | ||
return array ( | ||
'EVENT_LOAD_TASKBOARD' => EVENT_TYPE_EXECUTE, | ||
'EVENT_LOAD_DAILYSCRUM' => EVENT_TYPE_EXECUTE, | ||
'EVENT_LOAD_STATISTICS' => EVENT_TYPE_EXECUTE, | ||
'EVENT_LOAD_USERSTORY' => EVENT_TYPE_EXECUTE, | ||
'EVENT_LOAD_SETTINGS' => EVENT_TYPE_EXECUTE, | ||
|
@@ -645,7 +645,7 @@ function getDBVersion() { | |
*/ | ||
function upgrade() { | ||
|
||
plugin_config_set( 'gadiv_agilemantis_version', $this->version = "2.1.2" ); | ||
plugin_config_set( 'gadiv_agilemantis_version', $this->version = "2.2" ); | ||
|
||
$this->installConfigurationParams(); | ||
|
||
|
@@ -897,11 +897,7 @@ function event_view_bug_details ( $p_event , $p_project_id ) { | |
if( $sprint_name == "" ) { | ||
$disable_sprint_button = 'disabled'; | ||
} else { | ||
if( plugin_config_get( 'gadiv_taskboard' ) == 0 ) { | ||
$page_backlog = plugin_page( "sprint_backlog.php" ); | ||
} else { | ||
$page_backlog = plugin_page( "taskboard.php" ); | ||
} | ||
$page_backlog = plugin_page( "sprint_backlog.php" ); | ||
} | ||
require_once( AGILEMANTIS_CORE_URI."agile_mantis_custom_fields_inc.php" ); | ||
|
||
|
@@ -1200,6 +1196,7 @@ function event_bug_action ( $p_event, $p_action, $p_bug_id ) { | |
# add menu items to mantis main menu between "Summary" and "Manage" | ||
function event_add_structure() { | ||
global $agilemantis_commonlib; | ||
global $agilemantis_sprint; | ||
|
||
$user = $agilemantis_commonlib->getAdditionalUserFields( auth_get_current_user_id() ); | ||
$menu = array(); | ||
|
@@ -1219,25 +1216,11 @@ function event_add_structure() { | |
|| $user[0]['developer'] == 1 | ||
|| $user[0]['administrator'] == 1 ) { | ||
|
||
if( plugin_config_get( 'gadiv_taskboard' ) == 0 ) { | ||
$menu[0] = '<a href="' . plugin_page( "sprint_backlog.php" ) . | ||
'" class="agile_menu">Sprint Backlog</a>'; | ||
} else { | ||
$menu[0] = '<a href="' . plugin_page( "taskboard.php" ) . | ||
'" class="agile_menu">Sprint Backlog</a>'; | ||
} | ||
} | ||
|
||
# add daily scrum board | ||
if( ( $user[0]['participant'] == 1 | ||
|| $user[0]['developer'] == 1 | ||
|| $user[0]['administrator'] == 1 ) | ||
&& plugin_config_get( 'gadiv_daily_scrum' ) == 1 ) { | ||
|
||
$menu[1] = '<a href="' . plugin_page("daily_scrum_meeting.php") . | ||
'" class="agile_menu">Daily Scrum Meeting</a>'; | ||
} | ||
|
||
# add agileMantis menu item | ||
if( current_user_is_administrator() || $user[0]['administrator'] == 1 ) { | ||
$menu[3] = '<a href="' . plugin_page( "info.php" ) . | ||
|
@@ -1345,11 +1328,7 @@ function installConfigurationParams(){ | |
if( !config_is_set( 'plugin_agileMantis_gadiv_userstory_unit_mode' ) ) { | ||
config_set( 'plugin_agileMantis_gadiv_userstory_unit_mode', 'h' ); | ||
} | ||
|
||
if( !config_is_set( 'plugin_agileMantis_gadiv_taskboard' ) ) { | ||
config_set( 'plugin_agileMantis_gadiv_taskboard', 0 ); | ||
} | ||
|
||
|
||
if( !config_is_set( 'plugin_agileMantis_gadiv_daily_scrum' ) ) { | ||
config_set( 'plugin_agileMantis_gadiv_daily_scrum', 0 ); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.