SavageLearning / Machete

A web application for managing a day laborer referral organization. Built using .NET Core MVC, Entity Framework Core, jQuery, Datatables (datatables.net).
GNU General Public License v3.0
16 stars 17 forks source link

A card number of 99999 blocks any other worker records from being created #251

Open jcii opened 7 years ago

jcii commented 7 years ago

On 6/1/2017 Adam Roca made a Worker record for himself. He made his DWC Card number '99999', which broke some code Chaim wrote in 2014 to automatically get the next card number. I imagine he did that to help other centers.

Deleting the worker record for Adam fixes the problem. The error was not displayed because of bad decisions I made in 2011.

I'll make a ticket on github and put it in the backlog.

Here's the hidden error message: image

Here's the record that Adam Roca made: Inline image 2 image

chaim1221 commented 4 years ago

image

don't forget the validation method if you pick this up