Skip to content

Commit

Permalink
And now location names from the name field are stored! That's it for …
Browse files Browse the repository at this point in the history
…tonight

Also fixed bug that made city name always null.

Note: Current database varchar is not big enough to hold the name 'Lake Char­gogg­a­gogg­man­chaugg­a­gogg­chau­bun­a­gung­a­maugg', must fix
  • Loading branch information
arc12012 committed Mar 30, 2017
1 parent f75d22c commit bc2bd0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions WebContent/html/webpages/orderFormHandler.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ int location=-1;
if(Integer.parseInt(request.getParameter("location_dropdown"))==0)
{
location = access.addLocation(
"placeholder",
request.getParameter("locname"),
request.getParameter("state"),
request.getParameter("address"),
request.getParameter("town"),
request.getParameter("city"),
request.getParameter("zip"),
sso
);
Expand Down
2 changes: 1 addition & 1 deletion WebContent/html/webpages/shoppingCart.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ if(c.getName().equals("ssoNum")) sso = Integer.parseInt(c.getValue());
</div>
<div class="form-group-row">
<label for="">Location Name</label>
<input type="text" onkeyup="forceDropdownCustomLocation" class="form-control" name="locname" style="width: 50%" placeholder="Give your location a name!" readonly required/>
<input type="text" onkeyup="forceDropdownCustomLocation" class="form-control" name="locname" style="width: 50%" placeholder="Give your new location a name!" readonly required/>
</div>
<div class="form-group row" style="display: block; align-items: center;margin: 3% auto;">
<div class="col-md-6" style="width:50%">
Expand Down

0 comments on commit bc2bd0c

Please sign in to comment.