Open BuilderNSV opened 2 months ago
Hi @BuilderNSV
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.
Regards Johannes
Hi @hanneshal,
Thanks for detailed answer I have missed dependence from metainfo in template.
Best wishes, Sergey
@hanneshal,
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
Best wishes, Sergey
Hi @hanneshal, What about my last comment, do you agree with me?
Best wishes, Sergey
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