From 06cb429f6f9f684b8b01d4c516f7295c25868a21 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 24 Oct 2015 09:59:30 -0700 Subject: [PATCH] Fix for invalid element IDs. --- e107_handlers/admin_ui.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. } /**