Forum

[SOLVED] ContextTyp...
 
Notifications
Retirer tout

[SOLVED] ContextType

3 Posts
2 Utilisateurs
0 Reactions
1,515 Vu
 M
(@mkavurcic)
Posts: 43
Trusted Member
Début du sujet
 
[#8782]

it is not possible to create new ContextTypes;

to enable I've altered code in ContextType.php:

comment lines 39 and 40:
#public $_noDelete=true;
#public $_noCreate=true;

alter line 53:
private static $_fieldsAttributes=array("name"=>"required", "description"=>"required");

regards


 
Posté : 01/03/2023 2:43 pm
 M
(@mkavurcic)
Posts: 43
Trusted Member
Début du sujet
 

just disregard this post - mea culpa - I thought it woud be easy to implement new context types (test cases, tickets), but application logic makes it usesless


 
Posté : 02/03/2023 11:01 am
(@babynus)
Posts: 14952
Membre Admin
 

Yes, 
Tickets can display only 3 contexts, one of each type, so there is no need to add a contaxt type.
You cvan (and should) only change name of context type to change its meaning.


 
Posté : 02/03/2023 11:24 am
Share:
Retour en haut