Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix output value IS_DEFAULT in the product_sale_elements loop #1745

Merged
merged 2 commits into from
Nov 5, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# 2.3.0-alpha1

- #1746 Removes deprecated classes and methods for the version 2.3
- #1745 Fix output value IS_DEFAULT in the product_sale_elements loop
- #1754 Add homepage redirection on /admin/login if the admin is already authenticate. Before this change, there was a render
- #1765 Fix for prev/next queries in Category and Content loops, and add prev/next in Product and Folder loop
- #1759 Fix for parent attribute and new exclude_parent attribute of Category loop
- #1750 Add EQUAL to product loop filter by min or max
- #1727 Add template & stock inputs on product creation
- #1722 Replaced parameter "locale" with "lang" in generated URL
Expand Down
2 changes: 1 addition & 1 deletion core/lib/Thelia/Core/Template/Loop/ProductSaleElements.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public function parseResults(LoopResult $loopResult)
->set("QUANTITY", $PSEValue->getQuantity())
->set("IS_PROMO", $PSEValue->getPromo() === 1 ? 1 : 0)
->set("IS_NEW", $PSEValue->getNewness() === 1 ? 1 : 0)
->set("IS_DEFAULT", $PSEValue->getIsDefault() === 1 ? 1 : 0)
->set("IS_DEFAULT", $PSEValue->getIsDefault() ? 1 : 0)
->set("WEIGHT", $PSEValue->getWeight())
->set("REF", $PSEValue->getRef())
->set("EAN_CODE", $PSEValue->getEanCode())
Expand Down