I set up a custom issue relationship following this guide, but where I would expect it to show up, the line is blank. Back when I was running mantis 2.12.0, nothing showed up there at all, then when upgrading to Mantis 2.17.0, it had me move the custom_*_inc files to the config folder, and this showed up.
Here is my code:
custom_constants_inc.php
Code: Select all
<?php
define( 'BUG_CUSTOM_RELATIONSHIP_DEPENDENCY_OF', 99 );
define( 'BUG_CUSTOM_RELATIONSHIP_DEPENDS_ON', 98 );
Code: Select all
<?php
$g_relationships[ BUG_CUSTOM_RELATIONSHIP_DEPENDENCY_OF ] = array(
'#forward' => true,
'#complementary' => BUG_CUSTOM_RELATIONSHIP_DEPENDS_ON,
'#description' => 'rel_dependency_of',
'#notify_added' => 'email_notification_title_for_action_dependency_of_relationship_added',
'#notify_deleted' => 'email_notification_title_for_action_dependency_of_relationship_deleted',
'#edge_style' => array ( 'style' => 'dashed', 'color' => '808080' ),
);
$g_relationships[ BUG_CUSTOM_RELATIONSHIP_DEPENDS_ON ] = array(
'#forward' => false,
'#complementary' => BUG_CUSTOM_RELATIONSHIP_DEPENDENCY_OF,
'#description' => 'rel_depends_on',
'#notify_added' => 'email_notification_title_for_action_depends_on_relationship_added',
'#notify_deleted' => 'email_notification_title_for_action_depends_on_relationship_deleted',
'#edge_style' => array ( 'style' => 'dashed', 'color' => '808080' ),
);
Code: Select all
<?php
$s_rel_dependency_of = 'dependency of';
$s_rel_depends_on = 'depends on';
$s_email_notification_title_for_action_dependency_of_relationship_added = 'Dependency-Of Relationship Added';
$s_email_notification_title_for_action_dependency_of_relationship_deleted = 'Dependency-Of Relationship Deleted';
$s_email_notification_title_for_action_depends_on_relationship_added = 'Depends-On Relationship Added';
$s_email_notification_title_for_action_depends_on_relationship_deleted = 'Depends-On Relationship Deleted';