mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Fix for invalid element IDs.
This commit is contained in:
@@ -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.
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user