Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Triggering workflows on field changes to a field a user does not have access to
#5
Try this change and let me know how it goes so I can put it into the master branch

Code:
diff --git a/modules/com_vtiger_workflow/tasks/VTUpdateFieldsTask.inc b/modules/com_vtiger_workflow/tasks/VTUpdateFieldsTask.inc
index 0a0e6ac1d..76b287484 100644
--- a/modules/com_vtiger_workflow/tasks/VTUpdateFieldsTask.inc
+++ b/modules/com_vtiger_workflow/tasks/VTUpdateFieldsTask.inc
@@ -116,6 +116,7 @@ class VTUpdateFieldsTask extends VTTask {
                       $focus->saveentity($moduleName);
                       if (count($relmodule)>0 && $relId!='' && $relId!=0) {
                               foreach ($relmodule as $mod) {
+                                       $from_wf = true;
                                       $focusrel[$mod]->column_fields = DataTransform::sanitizeRetrieveEntityInfo($focusrel[$mod]->column_fields, $handlerMetarel[$mod]);
                                       if ($this->launchrelwf) {
                                               $focusrel[$mod]->save($mod);
Joe
TSolucio
Reply


Messages In This Thread
RE: Triggering workflows on field changes to a field a user does not have access to - joebordes - 02-10-2021, 12:28 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)