Commit c21431b0 authored by Jérome Perrin's avatar Jérome Perrin

if there is no consumption for this coordinate, display nothing and don't fail

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37234 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 858a7b3d
......@@ -66,7 +66,7 @@ try:\n
except KeyError:\n
available_budget_dict = container.REQUEST.other[script.getId()] = context.getAvailableBudgetDict()\n
\n
return getFakeBudgetCell(available_budget_dict[args])\n
return getFakeBudgetCell(available_budget_dict.get(args))\n
</string> </value>
</item>
<item>
......
......@@ -66,7 +66,7 @@ try:\n
except KeyError:\n
consumed_budget_dict = container.REQUEST.other[script.getId()] = context.getConsumedBudgetDict()\n
\n
return getFakeBudgetCell(consumed_budget_dict[args])\n
return getFakeBudgetCell(consumed_budget_dict.get(args))\n
</string> </value>
</item>
<item>
......
......@@ -66,7 +66,7 @@ try:\n
except KeyError:\n
engaged_budget_dict = container.REQUEST.other[script.getId()] = context.getEngagedBudgetDict()\n
\n
return getFakeBudgetCell(engaged_budget_dict[args])\n
return getFakeBudgetCell(engaged_budget_dict.get(args))\n
</string> </value>
</item>
<item>
......
293
\ No newline at end of file
294
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment