voidlily / timeboard

Georgia Tech CoC TA timesheets
4 stars 1 forks source link

data validation #34

Closed apmonroe closed 13 years ago

apmonroe commented 13 years ago

so i was messing around with the student signing form instead of integer hours i entered: bacon into one of the entries and hit save it flashes that it saved successfully but shows 0.0 where i entered ""bacon"

so i tried some more stuff...

i entered "@@" and "0.000005" into two entries and hit save throws exception that says database is locked

i can load other timesheets so i think the database can retrieve records but is refusing updates or inserts or w/e

jking31cs commented 13 years ago

In attempts to replicate, I cannot get the database locked. However, I am getting the "saved successfully" message. What I can do is have it say some errors occurred and save whatever it can.

jking31cs commented 13 years ago

1cfe62a53 Added error messages in case you do something like Andrew did, but it will save those entries filled out properly.