cwarren/sus — pull request #3 by natepixel (2012-01-11 19:09:25+00:00)
Title: fixed bug that could cause opening start / end screw ups when editing an opening

hi - just fixed a bug at moodle hack/doc that I'm hoping you can pull into the sign up sheets master. The test case is that when you create an opening from 11:50 AM to 12:30 PM, and then subsequently edit it and change something (like the location), the end time becomes 12:30 AM and is no longer changeable. It looked like there was a bit of code in sheet_create_openings_process.php that would sometimes add 12 hours - that code looked different in sheet_edit_openings_process.php, so I just moved the logic from sheet_create_openings_process.php over which fixed the problem. In the next major version of this, it would be awesome to centralize the code more so we didn't have separate code paths for create and edit. Thx!