ClockGU / clock-frontend

https://clock.uni-frankfurt.de
GNU Affero General Public License v3.0
0 stars 0 forks source link

Incorrect use of PATCH #691

Open chgad opened 1 month ago

chgad commented 1 month ago

I just came across the fact that in ContractForm and ShiftForm we are issueing updates via PATCH request but do send the whole object and not only the chagned fields.

chgad commented 1 month ago

Changing this to the appropriate form will have an influence on Contract updates. In particular these If Blocks need to be refactored. Updating a contract now only works since all the blocks are triggered, because of the "incorrect" usage of PATCH.