-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CC-14130: Fix memory leak on Backoffice ODP page with 100+ items. (#1…
…1246) Fix memory leak on Backoffice ODP page with 100+ items.
- Loading branch information
Showing
4 changed files
with
101 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 21 additions & 5 deletions
26
src/Spryker/Zed/Oms/Presentation/RenderForm/_partial/order-item-actions.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,21 @@ | ||
{{ render(controller('/oms/render-form/order-item', { | ||
redirectUrl: redirectUrl, | ||
idSalesOrderItem: idSalesOrderItem, | ||
eventsGroupedByItem: eventsGroupedByItem, | ||
})) }} | ||
{% if eventsFormAttributeMap[idSalesOrderItem] is defined %} | ||
{% for formAttribute in eventsFormAttributeMap[idSalesOrderItem] %} | ||
<form name="oms_trigger_form" method="post" action="{{ formAttribute.action }}" class="oms-trigger-form"> | ||
<div id="oms_trigger_form" class="oms-trigger-form"> | ||
<div class="form-group"> | ||
<button type="submit" class="btn btn-primary btn-sm trigger-event safe-submit btn"> | ||
{{ formAttribute.label | trans }} | ||
</button> | ||
</div> | ||
<input type="hidden" name="_token" value="{{ formAttribute.token }}"> | ||
</div> | ||
</form> | ||
{% endfor %} | ||
{% else %} | ||
{{ render(controller('/oms/render-form/order-item', { | ||
redirectUrl: redirectUrl, | ||
idSalesOrderItem: idSalesOrderItem, | ||
eventsGroupedByItem: eventsGroupedByItem, | ||
})) }} | ||
{% endif %} | ||
|