Issue with custom drop-down field on time sheet portal when impersonating

JenniferRah
Mega Sage

This is a long shot since it's custom code, but I'm hoping someone has an idea of where I can look that I haven't thought of yet. We have a custom drop-down field we have added to the time card table and the time sheet portal for Timecard Class. It looks like this and works fine. 

Time card - working.PNG

 

However, when we impersonate a user, the drop-down values don't display. The users themselves can see them. We just can't see them when impersonating. It looks like this: 

Time card - wrong.PNG

We can go to the time_card table (while impersonating) and see the values, so it's not an ACL issue. Here's what it looks like from there:

Time card - from client.PNG

It has to be something on the time sheet portal code, but I can't find any code that seems to be returning incorrectly. Anyone have an idea of what I could check? Thanks in advance for your help!

1 ACCEPTED SOLUTION

JenniferRah
Mega Sage

I was able to fix this by adding an ACL for sys_choice.* for all authenticated users.

 

Apparently in Washington DC Patch 4 Hotfix 1b, a change was made the security around API calls. Even though the users had access to see the choices when viewing them in the client, they could not execute the API call that was being made to pull them on the time sheet portal. Putting this here in case anyone else has a similar issue.

View solution in original post

6 REPLIES 6

Bert_c1
Kilo Patron

You could post your code, and it may reveal the problem you're having. Or post how you have defined the custom field. more details will help you get a solution

The field itself is just a string field that is a drop down with choices. And since the field works from the form, even when impersonating, I don't think it's that.

 

I'm not sure how to add the portal code here in a meaningful way, since it's just a few snippets in a couple of places on the existing widget. Like I said, it works fine for the users. It's just when we impersonate someone that it doesn't show the values. And there are no errors either.

JenniferRah
Mega Sage

I was able to fix this by adding an ACL for sys_choice.* for all authenticated users.

 

Apparently in Washington DC Patch 4 Hotfix 1b, a change was made the security around API calls. Even though the users had access to see the choices when viewing them in the client, they could not execute the API call that was being made to pull them on the time sheet portal. Putting this here in case anyone else has a similar issue.

Mohsin308
Tera Contributor

Hello Jennifer,

Can you please say how you were able to add a custom column in the logged time card list? I am also trying to add a custom field into the list, any help would me very much appreciated.

Thank you.