Skip to content

Commit

Permalink
Resolved #19
Browse files Browse the repository at this point in the history
  • Loading branch information
andris-sevcenko committed Oct 11, 2018
1 parent 456c946 commit 3c72d90
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Changelog
- Fixed a bug where querying for licenses would not work in some cases. ([#11](https://github.com/craftcms/commerce-digital-products/issues/11))
- Fixed a bug where it was impossible to delete a product. ([#12](https://github.com/craftcms/commerce-digital-products/issues/12))
- Fixed a bug where template path and product type URI format generator would not work correctly. ([#16](https://github.com/craftcms/commerce-digital-products/issues/16))
- Fixed deprecation errors in templates. ([#19](https://github.com/craftcms/commerce-digital-products/issues/19))

### Added
- Added `craft\digitalproducts\models\ProductTypeSite::getSite()`
Expand Down
4 changes: 2 additions & 2 deletions src/templates/products/_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@
</div>

{% if not product.slug %}
{% includejs %}
{% js %}
window.slugGenerator = new Craft.SlugGenerator('#title', '#slug');
{% endincludejs %}
{% endjs %}
{% endif %}

{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/products/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% set elementType = 'craft\\digitalproducts\\elements\\Product' %}

{% if productTypeHandle is defined %}
{% includejs 'window.defaultProductTypeHandle = "'~productTypeHandle~'";' %}
{% js 'window.defaultProductTypeHandle = "'~productTypeHandle~'";' %}
{% endif %}

{% do view.registerAssetBundle('craft\\digitalproducts\\web\\assets\\cp\\Bundle') -%}

0 comments on commit 3c72d90

Please sign in to comment.