View Issue Details

IDProjectCategoryView StatusLast Update
0033522mantisbtplug-inspublic2024-09-10 07:52
Reportercas Assigned Tocommunity  
PrioritynormalSeverityfeatureReproducibilityN/A
Status assignedResolutionopen 
Product Version2.26.0 
Summary0033522: Adding an overview to MantisGraph plugin can only be done by html link
Description

It would be nice to also allow for an array to be transferred.

Steps To Reproduce

I will provide a PR for this

TagsNo tags attached.

Activities

cas

cas

2024-01-18 08:03

reporter   ~0068448

see https://github.com/mantisbt/mantisbt/pull/1958

dregad

dregad

2024-02-19 19:21

developer   ~0068573

I'm not sure I understand why this is needed. Can you provide some context ?

cas

cas

2024-03-06 05:52

reporter   ~0068627

To me it seemed logical to provide same options for adding overviews by a plugin as standard is being used by Mantisbt. For standard items both arrays en html links are supported and for plugins just html links.
Nothing more than making it consistent.

dregad

dregad

2024-09-08 04:59

developer   ~0069171

Hi @cas I was looking at this, and I must admit I'm still a bit confused and not sure what you are trying to achieve... Maybe due to a misunderstanding of what you mean by "overview" in this context ?

To clarify, can you please explain better, maybe with screenshots ?
Also indicate what event(s) you are referring to ? Is it EVENT_SUBMENU_SUMMARY, EVENT_MANTISGRAPH_SUBMENU, others ? Alternatively, maybe you can point me to a plugin where you need this, with some explanations

cas

cas

2024-09-10 07:52

reporter   ~0069185

It is about the event "EVENT_MANTISGRAPH_SUBMENU", calling print_submenu within HTML_api.php ( see for example my Defcon plugin).
My suggestion was to provide plugins same options as standard available, so an array or a html link.
Do agree with you that this is introducting code duplication which clearly is not desirable.
If needed I can contribute a generic function for this.