ubccr / coldfront

HPC Resource Allocation System
https://coldfront.readthedocs.io
GNU General Public License v3.0
101 stars 80 forks source link

Allocation: Approve button resets date selection #470

Closed dsajdak closed 1 year ago

dsajdak commented 1 year ago

When the approve button is clicked, the status is changed to 'active,' the start date is set to today and the end date is set to 1 year from today (or whatever ALLOCATION_DEFAULT_ALLOCATION_LENGTH is set to). The admin should be able to set a different start and/or end date but can only do this if they do not use the 'Approve' button. When an admin selects a start date and/or end date on the allocation detail page, it is wiped out if they click on the 'approve' button. The 'update' button will save the changes properly but if the approve button is then used to change the status, it overwrites the selected dates.

Task Tests: