Author: sichen Date: Wed Oct 11 12:43:09 2006 New Revision: 462916 URL: http://svn.apache.org/viewvc?view=rev&rev=462916 Log: Removed possibility of creating a category with a category type, which is not allowed by service, from the edit category screen, and defaulted category type to CATALOG_CATEGORY
Modified: incubator/ofbiz/trunk/applications/product/webapp/catalog/category/EditCategory.ftl Modified: incubator/ofbiz/trunk/applications/product/webapp/catalog/category/EditCategory.ftl URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/webapp/catalog/category/EditCategory.ftl?view=diff&rev=462916&r1=462915&r2=462916 ============================================================================== --- incubator/ofbiz/trunk/applications/product/webapp/catalog/category/EditCategory.ftl (original) +++ incubator/ofbiz/trunk/applications/product/webapp/catalog/category/EditCategory.ftl Wed Oct 11 12:43:09 2006 @@ -75,9 +75,8 @@ <td> </td> <td width="74%"> <select name="productCategoryTypeId" size="1" class="selectBox"> - <option value=""> </option> <#list productCategoryTypes as productCategoryTypeData> - <option <#if productCategory?has_content><#if productCategory.productCategoryTypeId==productCategoryTypeData.productCategoryTypeId> selected="selected"</#if></#if> value="${productCategoryTypeData.productCategoryTypeId}">${productCategoryTypeData.get("description",locale)}</option> + <option <#if ((productCategory?has_content) && (productCategory.productCategoryTypeId==productCategoryTypeData.productCategoryTypeId)) || (productCategoryTypeData.productCategoryTypeId=="CATALOG_CATEGORY")>selected="selected"</#if> value="${productCategoryTypeData.productCategoryTypeId}">${productCategoryTypeData.get("description",locale)}</option> </#list> </select> </td>