Author: ashish
Date: Sat Oct 27 08:21:09 2018
New Revision: 1844946
URL:
http://svn.apache.org/viewvc?rev=1844946&view=revLog:
Fixed: ECommerce landing page breaks if popular category does not exists.
(OFBIZ-10617)
Thanks Rehan for reporting the issue and providing the patch.
Modified:
ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/ShowBestSellingCategory.ftl
Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/ShowBestSellingCategory.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/ShowBestSellingCategory.ftl?rev=1844946&r1=1844945&r2=1844946&view=diff==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/ShowBestSellingCategory.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/ShowBestSellingCategory.ftl Sat Oct 27 08:21:09 2018
@@ -16,7 +16,7 @@ KIND, either express or implied. See th
specific language governing permissions and limitations
under the License.
-->
-
+<#if productCategoryList?has_content>
<div class="card">
<h4 class="card-header">
Popular Categories
@@ -101,4 +101,4 @@ under the License.
</#list>
</div>
</div>
-
+</#if>