You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If metainformation is disabled and dashboard's widget is configured to display dynamic field as 1st column, dynamic field's values should be displayed correctly.
Actual behavior
If metainformation is disabled and dashboard's widget is configured to display dynamic field as 1st column, Dynamic field's name is displayed as column name but all values from next columns are shifted to on 1 column left. Dynamic field's values are not displayed.
How to reproduce
Steps to reproduce the behavior:
Create a ticket related dynamic field .
Create one or more tickets with filled dynamic field.
Configure, as example, 'Open Tickets' dashboard widget to display dynamic field in 1st column
See on the 'Open Tickets' widget that values of dynamic field are displayed correctly (see 'Correct view' in screenshots)
Go to Kernel/Output/HTML/Layout/Ticket.pm and change code so that TicketMetaItemsCount() and TicketMetaItems() functions return (). (empty array)
See on the 'Open Tickets' widget that values of dynamic field are displayed incorrectly - all values from next columns are shifted left (see 'Incorrect view' in screenshots).
Screenshots
Correct view
Incorrect view
The text was updated successfully, but these errors were encountered:
the reason for that is, that the render blocks are still triggered.
No Dashboard/TicketGeneric widget is able to do this by default. You need to modify code, and I think we can agree here, if you get errors / wrong behaviour after you made modifications to the code, it is not really a bug ;)
The template blocks (th and td) for this specific meta information are rendered and with your change you just reduced the data sent to the template.
This is not a bug in the framework. As long as ContentLargeTicketGenericHeaderMeta is rendered in the template, this will happen.
if you need a specific widget stlye, I suggest you create your own template for the widget and use the custom folder to deploy it.
It's me again. Please let me don't agree with you about template specific problem on my side. I've analyzed problem deeper and see that template modification is not required.
Value of dynamic field is not displayed in table because someone forgot to add block initialization before output dynamic field value $LayoutObject->Block( Name => 'GeneralOverviewRow', );
see Kernel\Output\HTML\Dashboard\TicketGeneric.pm, line 2005 - in that 'else' section this block is not initialized and value is not displayed but I can't understand how value is rendered if dynamic field is not in 1st position
Environment
Expected behavior
If metainformation is disabled and dashboard's widget is configured to display dynamic field as 1st column, dynamic field's values should be displayed correctly.
Actual behavior
If metainformation is disabled and dashboard's widget is configured to display dynamic field as 1st column, Dynamic field's name is displayed as column name but all values from next columns are shifted to on 1 column left. Dynamic field's values are not displayed.
How to reproduce
Steps to reproduce the behavior:
Screenshots
Correct view
Incorrect view
The text was updated successfully, but these errors were encountered: