Skip to content

Commit

Permalink
fix:配送方法の選択をするときに空白になる問題の対応
Browse files Browse the repository at this point in the history
  • Loading branch information
dotani1111 committed Sep 11, 2023
1 parent ac096e5 commit fbdb63f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Eccube/Resource/template/admin/Order/edit.twig
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ file that was distributed with this source code.
var deliveryId = $(this).val();
var $shippingDeliveryTime = $('#order_Shipping_DeliveryTime');
$shippingDeliveryTime.find('option').remove();
$shippingDeliveryTime.append($('<option></option>').val('').text('指定なし'));
$shippingDeliveryTime.append($('<option></option>').val('').text('{{ 'admin.common.select__unspecified'|trans }}'));
if (typeof(times[deliveryId]) !== 'undefined') {
for (var timeId in times[deliveryId]) {
timeValue = times[deliveryId][timeId];
Expand Down
2 changes: 1 addition & 1 deletion src/Eccube/Resource/template/admin/Order/shipping.twig
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ file that was distributed with this source code.
var deliveryId = $(this).val();
var $shippingDeliveryTime = $(this).parents('.card-body').find("select[id$='_DeliveryTime']");
$shippingDeliveryTime.find('option').remove();
$shippingDeliveryTime.append($('<option></option>').val('').text(trans('admin.common.select__unspecified')));
$shippingDeliveryTime.append($('<option></option>').val('').text('{{ 'admin.common.select__unspecified'|trans }}'));
if (typeof(times[deliveryId]) !== 'undefined') {
for (var timeId in times[deliveryId]) {
timeValue = times[deliveryId][timeId];
Expand Down

0 comments on commit fbdb63f

Please sign in to comment.