Skip to Content
1
Former Member
Jun 20, 2018 at 03:32 PM

DefaultRowRenderer not respecting disableDisplayingDetails?

253 Views

We are on Hybris 6.7 and we are using the com.hybris.cockpitng.editor.extendedmultireferenceeditor in Backoffice.

You have introduced that it is now possible to double click on a row which will open the details view. In previous releases it was only possible to click on the edit details in the popover and there it checks the disableDisplayingDetails editor parameter and respects it. If disableDisplayingDetails is true then you cannot see the details. However now when you added the double click option you forgot to respect this. You never check if disableDisplayingDetails is true or false but only bind it up directly on the row like this regardless of any editor parameters:

 row.addEventListener("onDoubleClick", (event) -> {
                     this.openRowsInEditorArea(entry);
                 });

So even if you add the editor parameter disableDisplayingDetails you can still double click on the row and it is shown which has introduced many problems for us in Backoffice.

I now have had to make the ugliest hack ever:

  1. Extend the extendedmultireferenceeditor

  2. Remove the Hyrbis event onDoubleClick from the row

  3. Check if disableDisplayingDetails is true or false

  4. If true add the event again if not DON'T add the event

Could you please fix this for the next release?