diff --git a/datamodels/2.x/itop-portal-base/portal/public/js/portal_form_handler.js b/datamodels/2.x/itop-portal-base/portal/public/js/portal_form_handler.js index 769e610bce..23d7375545 100644 --- a/datamodels/2.x/itop-portal-base/portal/public/js/portal_form_handler.js +++ b/datamodels/2.x/itop-portal-base/portal/public/js/portal_form_handler.js @@ -427,7 +427,7 @@ $(function() else { - if(window.history.length > 1) { + if(window.history.length == 1) { // This window doesn't seem to be a modal, yet there is no history. Try to close the window. window.close();