Skip to content

Commit 9b7952e

Browse files
committed
Merge branch 'develop'
2 parents 07d8d66 + 0432151 commit 9b7952e

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Components/Product/ProductFunctions.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2045,12 +2045,19 @@ public String ProductAjaxViewList(NBrightInfo ajaxInfo, string pagemid, string p
20452045
// If we have a list,then always display the default category
20462046
if (ModSettings.Get("staticlist") == "True")
20472047
{
2048+
// fix invalid select when no categories or properties exists.
2049+
if (filterCatList == "()")
2050+
filterCatList = "";
2051+
else
2052+
filterCatList = " and " + filterCatList;
2053+
// fix invalid select when no categories or properties exists.
2054+
20482055
if (catseo == "") catseo = _catid;
20492056
_catid = defcatid;
20502057
if (ModSettings.Get("chkcascaderesults").ToLower() == "true")
2051-
strFilter = strFilter + " and NB1.[ItemId] in (select parentitemid from " + dbOwner + "[" + objQual + "NBrightBuy] where (typecode = 'CATCASCADE' or typecode = 'CATXREF') and " + filterCatList + ") ";
2058+
strFilter = strFilter + " and NB1.[ItemId] in (select parentitemid from " + dbOwner + "[" + objQual + "NBrightBuy] where (typecode = 'CATCASCADE' or typecode = 'CATXREF') " + filterCatList + ") ";
20522059
else
2053-
strFilter = strFilter + " and NB1.[ItemId] in (select parentitemid from " + dbOwner + "[" + objQual + "NBrightBuy] where typecode = 'CATXREF' and " + filterCatList + ") ";
2060+
strFilter = strFilter + " and NB1.[ItemId] in (select parentitemid from " + dbOwner + "[" + objQual + "NBrightBuy] where typecode = 'CATXREF' " + filterCatList + ") ";
20542061

20552062
if (ModSettings.Get("caturlfilter") == "True" && catseo != "" && catseo != _catid)
20562063
{

Themes/Default/Default/CheckoutAddress.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878

7979
<div class="formrow">
8080
<label>@ResourceKey("General.lblAddress1")</label>
81-
@NBrightTextBox(info, "genxml/billaddress/genxml/textbox/unit")
81+
@NBrightTextBox(info, "genxml/billaddress/genxml/textbox/unit", "required name='billunit' class='required'")
8282
</div>
8383

8484
<div class="formrow">

0 commit comments

Comments
 (0)