Simplify validateSection as we do not support custom fields in other view

This commit is contained in:
Tuan Pham Ngoc 2021-08-17 23:26:09 +07:00
parent b668befbb2
commit 6e0dfb59af
1 changed files with 0 additions and 12 deletions

View File

@ -80,18 +80,6 @@ class WeblinksComponent extends MVCComponent implements CategoryServiceInterface
*/
public function validateSection($section, $item = null)
{
if (Factory::getApplication()->isClient('site'))
{
// On the front end we need to map some sections
switch ($section)
{
// Adding/Editing a weblink
case 'form':
$section = 'weblink';
break;
}
}
if ($section != 'weblink')
{
// We don't know other sections