Skip to content

Commit

Permalink
Merged branch '2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
konradoboza committed Feb 18, 2021
2 parents 35eda25 + 5906ab9 commit bfd88d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/bundle/Controller/LocationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ public function removeAction(Request $request): Response

foreach ($data->getLocations() as $locationId => $selected) {
$location = $this->locationService->loadLocation($locationId);
$this->locationService->deleteLocation($location);
$this->trashService->trash($location);

$this->notificationHandler->success(
/** @Desc("Location '%name%' removed.") */
Expand Down
4 changes: 2 additions & 2 deletions src/bundle/Resources/translations/locationview.en.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@
<note>key: tab.locations.main</note>
</trans-unit>
<trans-unit id="e704444c07d73c053f58f427ebcc0b6b2042c63d" resname="tab.locations.modal.message">
<source>Do you want to delete the Location?</source>
<target state="new">Do you want to delete the Location?</target>
<source>Do you want to delete the Location? All its sub-items will be sent to Trash.</source>
<target state="new">Do you want to delete the Location? All its sub-items will be sent to Trash.</target>
<note>key: tab.locations.modal.message</note>
</trans-unit>
<trans-unit id="7514a2a1e82c82fa3a197dc3da8be56a9c68f136" resname="tab.locations.path">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
</button>
{% include '@ezdesign/ui/modal/bulk_delete_confirmation.html.twig' with {
'id': modal_data_target,
'message': 'tab.locations.modal.message'|trans|desc('Do you want to delete the Location?'),
'message': 'tab.locations.modal.message'|trans|desc('Do you want to delete the Location? All its sub-items will be sent to Trash.'),
'data_click': '#' ~ form_remove.remove.vars.id,
} %}
{% endmacro %}

0 comments on commit bfd88d6

Please sign in to comment.