a1dert/lh-tickets-test — Issue #216: Item fields disappear if error on item name when request expense
Author: a1dert
Created: 2011-11-30 11:56:35+00:00
State: open

Imported from lighthouse. Original ticket at: http://redtape.lighthouseapp.com/projects/59696/tickets/273. Created by Adina Moldovan - 2011-06-01T14:19:33Z

Steps:
1. Login
2. Request expense
3. Fill in title, details and choose cost center
4. Add new item
5. Fill in only the cost (not the item name)
6. Submit

Expected: error message as item not filled in. The dynamic inputs (item) stay on the page, having item field underlined (to show the error).
I expect this behavior because it happens as described when filling in the item name but not the cost.
Actual: I get the error message but the dynamic inputs disappear and cost data is lost.