You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by gb...@apache.org on 2005/06/26 20:04:02 UTC

svn commit: r201886 - /ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Cart.ascx.cs

Author: gbayon
Date: Sun Jun 26 11:04:01 2005
New Revision: 201886

URL: http://svn.apache.org/viewcvs?rev=201886&view=rev
Log:
- Fixed issue in updated command when there's no change

Modified:
    ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Cart.ascx.cs

Modified: ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Cart.ascx.cs
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Cart.ascx.cs?rev=201886&r1=201885&r2=201886&view=diff
==============================================================================
--- ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Cart.ascx.cs (original)
+++ ibatis/trunk/cs/npetshop2/NPetshop.Web/UserControls/Shopping/Cart.ascx.cs Sun Jun 26 11:04:01 2005
@@ -101,7 +101,6 @@
 
 				_shoppingController.UpdateQuantityByItemId(itemId, quantity);
 			}
-			DataBind();	
 		}
 
 		protected void RepeaterCart_ItemCommand(object source, System.Web.UI.WebControls.RepeaterCommandEventArgs e)
@@ -112,7 +111,7 @@
 			}
 			else if (e.CommandName == "update")
 			{
-				//nothing to do	
+				DataBind();	
 			}
 			else if (e.CommandName == "showItem")
 			{