diff --git a/phpgwapi/templates/default/uiaccountsel.tpl b/phpgwapi/templates/default/uiaccountsel.tpl index 7281039e5a..4dee41c4a7 100644 --- a/phpgwapi/templates/default/uiaccountsel.tpl +++ b/phpgwapi/templates/default/uiaccountsel.tpl @@ -30,7 +30,7 @@ if (selectBox.options[i].selected) { for (j=0; j < openerSelectBox.length; j++) { if (openerSelectBox[j].value == selectBox.options[i].value) { - openerSelectBox[j].selected = false; + openerSelectBox.removeChild(openerSelectBox[j]); } } selectBox.options[i--] = null; diff --git a/phpgwapi/templates/edge-it/uiaccountsel.tpl b/phpgwapi/templates/edge-it/uiaccountsel.tpl index edca18168c..4975b2749a 100644 --- a/phpgwapi/templates/edge-it/uiaccountsel.tpl +++ b/phpgwapi/templates/edge-it/uiaccountsel.tpl @@ -30,7 +30,7 @@ if (selectBox.options[i].selected) { for (j=0; j < openerSelectBox.length; j++) { if (openerSelectBox[j].value == selectBox.options[i].value) { - openerSelectBox[j].selected = false; + openerSelectBox.removeChild(openerSelectBox[j]); } } selectBox.options[i--] = null;