diff --git a/e107_handlers/admin_ui.php b/e107_handlers/admin_ui.php index 23133b7dd..d960de441 100644 --- a/e107_handlers/admin_ui.php +++ b/e107_handlers/admin_ui.php @@ -6434,7 +6434,8 @@ class e_admin_form_ui extends e_form public function getElementId() { $controller = $this->getController(); - return str_replace('_', '-', ($controller->getPluginName() == 'core' ? 'core-'.$controller->getTableName() : 'plugin-'.$controller->getPluginName())); + $name = str_replace('_', '-', ($controller->getPluginName() == 'core' ? 'core-'.$controller->getTableName() : 'plugin-'.$controller->getPluginName())); + return e107::getForm()->name2id($name); // prevent invalid ids. } /**