Lookup field not being updated

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
dannybridi
Veteran Member
Posts: 54
Joined: 2016-03-21 19:33

Lookup field not being updated

Post by dannybridi » 2023-09-17 18:36

Hi,
In my project using AppGini version 23.15 revision 1484, I have a group of users that normally have permissions to insert, view, edit and delete their own records. All works fine so far.
I now need to remove the insert and delete permissions. Again, all is fine, except for one field. This is a lookup field from another table. When a user tries to modify that field, the application shows the green message at the top of the screen that the changes were successful, but what actually happens is that the field seems to have been nulled. I would have to go in as admin and fix it.
I also noticed that after clicking the save changes button, the after_update function in the table.php file in the hooks folder is not executed.
Once I grant the insert permission again, all returns to normal.
Do you know how I can resolve this?
Thanks

dannybridi
Veteran Member
Posts: 54
Joined: 2016-03-21 19:33

Re: Lookup field not being updated

Post by dannybridi » 2023-09-17 21:02

The strange thing is that there are other lookup fields that work normally. Just this one doesn’t and I can’t see the difference…

Post Reply