diff --git a/src/Bundle/ChillMainBundle/Resources/public/page/workflow-show/index.js b/src/Bundle/ChillMainBundle/Resources/public/page/workflow-show/index.js index 0f94ac374..7ae5ca621 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/page/workflow-show/index.js +++ b/src/Bundle/ChillMainBundle/Resources/public/page/workflow-show/index.js @@ -25,6 +25,10 @@ window.addEventListener('DOMContentLoaded', function() { for (let transition of froms) { for (let input of transition.querySelectorAll('input')) { if (input.checked) { + if ('1' === input.dataset.toFinal) { + return false; + } + if ('1' === input.dataset.isSentExternal) { return false; } @@ -151,6 +155,7 @@ window.addEventListener('DOMContentLoaded', function() { } } } + return true; }, toggle_callback: function (c, dir) { for (let div of c) {