c-topherl / brewCom

0 stars 0 forks source link

Submit Order Request #70

Closed c-topherl closed 8 years ago

c-topherl commented 8 years ago

Getting a "column user_id cannot be null" when trying to call submit_order, but I'm definitely passing user_id.

Here's the data I'm sending, viewed in Chrome debugger:

image

c-topherl commented 8 years ago

Turns out I wasn't sending any data with submit_order call before. Checking in changes to actually pass data now so you'll have to grab the latest JS.

joelmeister commented 8 years ago

Fixed, I didn't remove the "cart" index from the get_cart in the submit_order function.

Now once an order is submitted, the message "Your order has been placed successfully!" won't go away until the page is refreshed.