dotkom / onlineweb4

Web pages for Online, Linjeforeningen for Informatikk at NTNU
https://online.ntnu.no
MIT License
49 stars 23 forks source link

Change interest group does not work #2572

Open gruluk opened 3 years ago

gruluk commented 3 years ago

It is not possible to save changes or create new interest groups. The save button does nothing when you try to change something.

Steps to reproduce the behavior:

  1. Go to Dashboard
  2. Click on 'Interessegrupper'
  3. Click on edit or create new group
  4. Edit or add anything to this page
  5. When clicking on save, nothing happens

Tried this on several devices

FluidSense commented 3 years ago

@gruluk Could you retry while having the network tab open, and see what kind of HTTP Status code you get? I can recreate that the save button does no UI-change or redirect, but got 201 Created in the network tab. I found the test group I created in the admin panel as well, but I cannot find it in the dashboard overview.

FluidSense commented 3 years ago

Edit: I cannot see it in the view when "Active" is false, but when I changed that through admin, it is shown in Dashboard.

gruluk commented 3 years ago

image

Here are the HTTP status codes

FluidSense commented 3 years ago

@gruluk When do you get those status codes? Is this when you try to edit the hobbygroup "Smashkom"?

gruluk commented 3 years ago

@FluidSense Yes, when I try to save a change in a group

FluidSense commented 3 years ago

@gruluk 403 Permission Denied is weird, I took a quick look at admin and it looked like the correct permissions were set. Does it happen with all groups or are there some that works?

gruluk commented 3 years ago

@FluidSense Hm, I get the same 403 when I try to save Podline, GreenLine, PremLine and Ontap at least.