Added the new Intelligent fix to the assets table rules column (the new default). This will add the fix only if needed, and removes it only if no longer needed, with messages that tell the end-user what it has done. Resolves gh-616
This commit is contained in:
@ -685,7 +685,7 @@ class ComponentbuilderModelAdmin_views extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
@ -701,7 +701,7 @@ class ComponentbuilderModelAdmin_views extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_type);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_type)
|
||||
|| ComponentbuilderHelper::checkString($_type))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelAdmins_custom_tabs extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelAdmins_fields extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelAdmins_fields_conditions extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelAdmins_fields_relations extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -290,7 +290,7 @@ class ComponentbuilderModelClass_extendings extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -463,7 +463,7 @@ class ComponentbuilderModelClass_methods extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -461,7 +461,7 @@ class ComponentbuilderModelClass_properties extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelComponents_admin_views extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelComponents_config extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelComponents_custom_admin_menus extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelComponents_custom_admin_views extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelComponents_dashboard extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelComponents_files_folders extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelComponents_modules extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelComponents_mysql_tweaks extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelComponents_placeholders extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelComponents_plugins extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelComponents_site_views extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelComponents_updates extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -519,7 +519,7 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -555,7 +555,7 @@ class ComponentbuilderModelCustom_codes extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -470,7 +470,7 @@ class ComponentbuilderModelDynamic_gets extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -638,7 +638,7 @@ class ComponentbuilderModelFields extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
@ -658,7 +658,7 @@ class ComponentbuilderModelFields extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_category);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_category)
|
||||
|| ComponentbuilderHelper::checkString($_category))
|
||||
{
|
||||
@ -670,7 +670,7 @@ class ComponentbuilderModelFields extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_category_id);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_category_id)
|
||||
|| ComponentbuilderHelper::checkString($_category_id))
|
||||
{
|
||||
@ -682,7 +682,7 @@ class ComponentbuilderModelFields extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_catid);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_catid)
|
||||
|| ComponentbuilderHelper::checkString($_catid))
|
||||
{
|
||||
|
@ -399,7 +399,7 @@ class ComponentbuilderModelFieldtypes extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
@ -414,7 +414,7 @@ class ComponentbuilderModelFieldtypes extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_category);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_category)
|
||||
|| ComponentbuilderHelper::checkString($_category))
|
||||
{
|
||||
@ -426,7 +426,7 @@ class ComponentbuilderModelFieldtypes extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_category_id);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_category_id)
|
||||
|| ComponentbuilderHelper::checkString($_category_id))
|
||||
{
|
||||
@ -438,7 +438,7 @@ class ComponentbuilderModelFieldtypes extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_catid);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_catid)
|
||||
|| ComponentbuilderHelper::checkString($_catid))
|
||||
{
|
||||
|
@ -2517,7 +2517,7 @@ class ComponentbuilderModelJoomla_components extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -296,7 +296,7 @@ class ComponentbuilderModelJoomla_modules extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelJoomla_modules_files_folders_urls extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelJoomla_modules_updates extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -237,7 +237,7 @@ class ComponentbuilderModelJoomla_plugin_groups extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -457,7 +457,7 @@ class ComponentbuilderModelJoomla_plugins extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelJoomla_plugins_files_folders_urls extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelJoomla_plugins_updates extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -456,7 +456,7 @@ class ComponentbuilderModelLanguage_translations extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -482,7 +482,7 @@ class ComponentbuilderModelLanguages extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -451,7 +451,7 @@ class ComponentbuilderModelLayouts extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -383,7 +383,7 @@ class ComponentbuilderModelLibraries extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelLibraries_config extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ class ComponentbuilderModelLibraries_files_folders_urls extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -363,7 +363,7 @@ class ComponentbuilderModelPlaceholders extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -478,7 +478,7 @@ class ComponentbuilderModelServers extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -527,7 +527,7 @@ class ComponentbuilderModelSite_views extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -237,7 +237,7 @@ class ComponentbuilderModelSnippet_types extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -541,7 +541,7 @@ class ComponentbuilderModelSnippets extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -451,7 +451,7 @@ class ComponentbuilderModelTemplates extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
@ -361,7 +361,7 @@ class ComponentbuilderModelValidation_rules extends JModelList
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an int or string
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
|
Reference in New Issue
Block a user