YetiForceCompany / YetiForceCRM

Our team created for you one of the most innovative CRM systems that supports mainly business processes and allows for customization according to your needs. Be ahead of your competition and implement YetiForce!
https://yetiforce.com
Other
1.74k stars 749 forks source link

Value calculated via workflow not saved in the field #17403

Open salvofan opened 8 months ago

salvofan commented 8 months ago

🐞 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 10.5.24-MariaDB-1:10.5.24+maria~ubu2004
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