From 674d2230a566cd4f232b9501b928a035812a01d0 Mon Sep 17 00:00:00 2001
From: Yusei Tahara <yusei@nexedi.com>
Date: Thu, 3 Mar 2022 17:21:29 +0900
Subject: [PATCH] ERP5Type/patches/DCWorkflowGraph: Fix "Translate Graph" bug.

---
 product/ERP5Type/patches/DCWorkflowGraph.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Type/patches/DCWorkflowGraph.py b/product/ERP5Type/patches/DCWorkflowGraph.py
index 0fca639d8c..0b9790d9be 100644
--- a/product/ERP5Type/patches/DCWorkflowGraph.py
+++ b/product/ERP5Type/patches/DCWorkflowGraph.py
@@ -167,7 +167,7 @@ def getGraph(self, wf_id="", format="png", REQUEST=None):
                           '-Efontname=IPAexGothic', '-Efontsize=10',
                           '-T%s' % format),
                          stdin=subprocess.PIPE, stdout=subprocess.PIPE)
-    result = p.communicate(pot)[0]
+    result = p.communicate(result)[0]
 
     setHeader('Content-Type', 'image/%s' % format)
   else:
-- 
2.30.9