Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Value calculated via workflow not saved in the field #17403

Open
2 tasks
salvofan opened this issue Mar 20, 2024 · 0 comments
Open
2 tasks

Value calculated via workflow not saved in the field #17403

salvofan opened this issue Mar 20, 2024 · 0 comments

Comments

@salvofan
Copy link

🐞 bug report

If a workflow is triggered by an user and this user has "read only rights" on the field that is modified by the workflow, the field is not updated.

⁉️ Describe the bug

We have a few fields that we want to be populated ONLY via automatic calculation and they can never be modified by a person (while they should be read by the users). We have set permissions to "read only" via "profile" page in the settings and correctly the users can only see them in view mode (but not is edit mode). The user is allowed to trigger a workflow that modify them, based on a "starting date" the user can set. Unfortunately the calculation is added in the field only if triggered by admins but not by user.
I consider this a bug because I want the user to be able to "change" them always based on the parameter they can set. This is happening in both cases: the user trigger manually, the workflow is set to run "everytime the record is saved"

🔥 How to trigger the error

Steps to reproduce the behavior:

  1. Go to 'An Entity with a field AA that is "read only" for a user'
  2. Click on 'the field AB that is triggering the workflow to change the field AA'
  3. Be sure the workflow is triggered and/or trigger it manually. THen refresh the page
  4. See error (the field AA is not updated)

👎 Actual Behavior

see above

👍 Expected Behavior

I expect the field to be updated

👷 Testing

CANNOT TEST as I need a workflow to be set for this

📷 Screenshot of configuration

📝 PHP/Apache/Nginx/Browser/CRM Logs

🌍 Your Environment

Environment Version / Name
YetiForce 6.4
Web server (name and version) Apache/2.4.58 (Ubuntu)
PHP 8.0.30
Browser (name and version) ALL - Edge and Chrome both tested
Operating System (name and version) inux my 5.4.0-173-generic #191-Ubuntu SMP Fri Feb 2 13:55:07 UTC 2024 x86_64
Database (name and version) mariadb.org binary distribution
Service Pack version YetiForce CRM 6.4 Service Pack v6

❓ Additional context

Add any other context about the problem here.

❗️ Inform the community if you solve the problem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant