Incorrect "Requested for" value in Service Portal
Steps to Reproduce
- Log in as an admin user.
- Navigate to Service Portal.
- Add an item to the cart.
- Navigate to the cart in the header menu and click View Cart.
- Click Proceed to checkout.
- Pick a user for the Requested for field, for example, Abel Tuter.
- Click Cancel.
- Navigate back to the catalog and open any item with the request method 'Submit'.
- Click Submit.
Note that the request is requested for the user you picked in Step 6 and not yourself.
This issue has been fixed. If you are able to upgrade, review the Fixed In or Intended Fix Version fields to determine whether any versions have a planned or permanent fix.
After upgrading to fixed version you also have to add the property :"glide.sc.use_default_cart_requested_for".
Please check the input from the development team:
For this fix, we added a property called 'glide.sc.use_default_cart_requested_for', which is by default set to true. When this property is true, any custom cart that is created will take its default requested_for to be that of the DEFAULT cart. If we pass requested_for as a parameter to the backend, then the value of that parameter is honored.
When the property is false, any custom cart that is created will take its default requested_for to be the currently logged-in user, unless we pass requested_for as a parameter to the backend.
Related Problem: PRB1352487