Page 1 of 1

Custom issue relationship text doesn't show up

Posted: 07 Sep 2018, 02:24
by The_Fireplace
Hi guys,
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.
Image
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 );
custom_relationships_inc.php

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' ),
);
custom_strings_inc.php

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';
If anyone has any ideas about what I could try to get this working, I'd like to hear them. Thanks!

Re: Custom issue relationship text doesn't show up

Posted: 10 Sep 2018, 07:29
by atrol
Works for me
CustomDependency.PNG
CustomDependency.PNG (11.07 KiB) Viewed 1973 times
Are you sure that you have the right custom_strings_inc.php in config folder?

Re: Custom issue relationship text doesn't show up

Posted: 16 Sep 2018, 06:49
by The_Fireplace
Deleting and re-uploading the file fixed the issue. Thanks!