YaleSTC / shifts

Application to easily track shifts, reports, and payforms for employees.
MIT License
23 stars 18 forks source link

198 sub requests for unscheduled shifts #200

Closed jacobwilliams918 closed 10 years ago

jacobwilliams918 commented 11 years ago

Added validation in the model to ensure a shift is scheduled before a sub request can be made for it. Also added a check in the controller to prevent a user from trying to render the sub_request form if the soon to be associated shift is not scheduled (necessary because the form uses the shift to set many default fields)