ZoomApps / Liveapp

Liveapp Framework :rocket:
https://www.liveapp.com.au
2 stars 1 forks source link

Issue when trying to delete a staff from the roster staff page. #93

Closed LIvewareNB closed 5 years ago

LIvewareNB commented 5 years ago

I'm submitting a ...

Current behavior: When you select a user in the Roster Staff Page it is not returning the correct User ID / the selected row is not pulling and returning the correct User ID on the edit code section

Expected / new behavior: If a staff member has no shifts assigned to them on a roster they should be able to be deleted from the roster

Minimal reproduction of the problem with instructions:

  1. Log into UAT site and go to a roster Roster Staff Page.
  2. Select a user then try and delete it.
  3. It should return the correct User ID

An Example of the issue (using https://cims.livewarecloud.com.au/uatliveappv5_17/) is John Smith has a user ID of 50 Liveapp Roster staff 1

John Smith is selected however the User ID returned by liveapp is 13. Note: it happens to all users not on new users only Liveapp Roster staff 2

Liveapp version: 5.6.0 and 6.0.0 please access https://cims.livewarecloud.com.au/UAT/# and https://cims.livewarecloud.com.au/uatliveappv5_17/

Browser: Chrome

Anything else:

paulfisher53 commented 5 years ago

Hi @LIvewareNB , the issue here is that you are using the Delete button trigger which runs after the record is deleted. If you want to run code before it is deleted, you need to move your code to the OnDelete trigger on the Table.

paulfisher53 commented 5 years ago

Fix/mod is available for this issue

We are closing this issue as a fix/mod has been supplied.

NOTE: If the issue persists, please re-open the issue with the appropriate testing information.