View Issue Details

IDProjectCategoryView StatusLast Update
0032712mantisbtcustomizationpublic2023-07-03 14:48
Reportergevan Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version2.25.7 
Summary0032712: Adding Steps in workflow
Description

Hello,

I'm just installing MantisBT version 2.25.7. Before we worked with version 1.2.12.

I want to recreate my workflow.

In file config_inc.php , I add
$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved,82:ValidatingProg,85:ProgValidated,89:AllSend,90:closed,91:rejected';

and for the colors :

$g_status_colors['waiting_for_prod'] = '#31b2c5';
$g_status_colors['waiting_for_test'] = '#d2f5b0';
$g_status_colors['SendForTest'] = '#C2DFFF';
$g_status_colors['ValidProg'] = '#D2F5B0';
$g_status_colors['NotValidProg'] = '#E93C32';
$g_status_colors['AllSend'] = '#C9CCC4';
$g_status_colors['ValidatingProg'] = '#d2f5b0';
$g_status_colors['ProgValidated'] = '#FFAA71';
$g_status_colors['rejected'] = '#E93C32';

I create custom_constants_inc.php
<?php

define ( 'PROD', 70 );
define ( 'TEST', 60 );
define('SendForTest',51);
define('ValidProg',65);
define('ValidatingProg',81);
define('ProgValidated',85);
define('AllSend',89);
define('NotValidProg',82);
define('rejected',91);

I can use and see my new steps, but the colors is black.

Do you have an idea ?

TagsNo tags attached.
Attached Files
mantis2.png (109,873 bytes)   
mantis2.png (109,873 bytes)   

Relationships

related to 0024189 closedcproensa Status color squares become black 

Activities

atrol

atrol

2023-06-09 12:54

developer   ~0067839

Which status color do you expect?
Your screenshot shows French status "A controler", so it's not clear which color should be taken for it.

Independent from that, as some first steps

  • try clearing browser cache
  • try with English account settings
  • check your browser console for errors
gevan

gevan

2023-06-12 04:11

reporter   ~0067842

Thanks for your answer.

I would like a green, like status "resolved".
My status "a controler" is the state "ValidProg" whith code color "D2F5B0"

I'm using Chrome and it didn't work. When i use Microsoft edge, it's working.

In first, I tried the example present in "Admin_Guide.txt" file, section 7.5. I have got a same result. It's working with Microsoft edge, but not with Chrome.

I cleared browser cache : no change

Chrome devtools gives me the error : DevTools failed to load source map: Could not load content for http://hib-tse-gestion:8023/mantis2023/js/moment-with-locales.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

in my directory c:\xampp\htdocs\mantis2023\js, I don't have file named "moment-with-locales.min.js.map"

Do you have idea?

dregad

dregad

2023-06-12 10:09

developer   ~0067843

failed to load source map can be ignored, it is harmless and unrelated to your problem (see https://stackoverflow.com/a/61442974).

The fact that it's working on Edge and not Chrome, tends to indicate that it's not a problem with MantisBT or your configuration, but something specific to your browser (Chrome).

This is a recurring problem (search for black in view issues page), which is usually caused by a caching problem (not necessarily the browser's, could be a proxy or even the web server itself).

The colors are generated by a dynamic css script (status_config.php), maybe that helps your troubleshooting.

Not much more that we can do here, so I'm resolving this as no change required, feel free to reopen if you can provide evidence that this is caused by MantisBT code.

atrol

atrol

2023-06-12 13:38

developer   ~0067844

@gevan on low level, Edge is based on Chrome engine, so there shouldn't be that much differences.
Maybe you have installed some Chrome addons that cause the issue.