Command line instructions:
-
-
- git checkout master
- git pull upstream master
- tx pull --force
- git commit -a -m "Update all locales with the latest Transifex translations"
- git push upstream master
-
-
-
-- [ ] Create a tag:
- - `script/tag_release` will auto increment patch version, otherwise
- - `git push upstream HEAD:refs/tags/vX.Y.Z`
+- [ ] Include translations: `script/release/udpate_locales`
+- [ ] Increment version number: `git push upstream HEAD:refs/tags/vX.Y.Z`
+ - Major: if server changes are required (eg. provision with ofn-install)
+ - Minor: larger change that is irreversible (eg. migration deleting data)
+ - Patch: all others. Shortcut: `script/release/tag`
- [ ] [Draft new release]. Look at previous [releases] for inspiration.
- Select new release tag
- _Generate release notes_ and check to ensure all items are arranged in the right category.
diff --git a/app/assets/javascripts/admin/spree/orders/variant_autocomplete.js.erb b/app/assets/javascripts/admin/spree/orders/variant_autocomplete.js.erb
index a8a96ec36b..001055417e 100644
--- a/app/assets/javascripts/admin/spree/orders/variant_autocomplete.js.erb
+++ b/app/assets/javascripts/admin/spree/orders/variant_autocomplete.js.erb
@@ -50,11 +50,11 @@ $(document).ready(function() {
if (quantity > maxQuantity) {
quantity = maxQuantity;
save.parents('tr').find('input.line_item_quantity').val(maxQuantity);
- ofnAlert(t("js.admin.orders.quantity_adjusted"));
+ ofnAlert(t("js.admin.orders.quantity_unavailable"));
+ } else {
+ adjustItems(shipment_number, variant_id, quantity, true);
}
- toggleItemEdit();
- adjustItems(shipment_number, variant_id, quantity, true);
return false;
}
$('a.save-item').click(handle_save_click);
diff --git a/app/views/shared/_google_maps_js.html.haml b/app/views/shared/_google_maps_js.html.haml
index 515c0220a5..73202ada9f 100644
--- a/app/views/shared/_google_maps_js.html.haml
+++ b/app/views/shared/_google_maps_js.html.haml
@@ -1,2 +1,2 @@
- if !ContentConfig.open_street_map_enabled
- %script{src: "https://maps.googleapis.com/maps/api/js?libraries=places,geometry#{ ENV['GOOGLE_MAPS_API_KEY'] ? '&key=' + ENV['GOOGLE_MAPS_API_KEY'] : ''}#{ ENV['GOOGLE_MAPS_REGION'] ? '®ion=' + ENV['GOOGLE_MAPS_REGION'] : ''} "}
+ %script{src: "https://maps.googleapis.com/maps/api/js?libraries=places,geometry#{ ENV['GOOGLE_MAPS_API_KEY'].present? ? '&key=' + ENV['GOOGLE_MAPS_API_KEY'] : ''}#{ ENV['GOOGLE_MAPS_REGION'].present? ? '®ion=' + ENV['GOOGLE_MAPS_REGION'] : ''} "}
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 5a3aca8796..4186de07b9 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -3441,7 +3441,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using
processing: "processing"
void: "void"
invalid: "invalid"
- quantity_adjusted: "Insufficient stock available. Line item updated to maximum available quantity."
+ quantity_unavailable: "Insufficient stock available. Line item unsaved!"
quantity_unchanged: "Quantity unchanged from previous amount."
cancel_the_order_html: "This will cancel the current order.