Release of v4.0.0-beta2
Add view list and single name fix. Add component code name fix. Add reset list of powers.
This commit is contained in:
@ -1529,6 +1529,12 @@ class Admin_viewModel extends AdminModel
|
||||
{
|
||||
$data['system_name'] = $data['name_single'];
|
||||
}
|
||||
|
||||
// validate that the list and single view name are not the same
|
||||
if ($data['name_single'] === $data['name_list'])
|
||||
{
|
||||
$data['name_list'] .= '_s';
|
||||
}
|
||||
|
||||
// Set the GUID if empty or not valid
|
||||
if (empty($data['guid']) && $data['id'] > 0)
|
||||
|
@ -34,6 +34,7 @@ use VDM\Joomla\Utilities\ObjectHelper;
|
||||
use VDM\Joomla\Utilities\GuidHelper;
|
||||
use VDM\Joomla\FOF\Encrypt\AES;
|
||||
use VDM\Joomla\Utilities\ArrayHelper as UtilitiesArrayHelper;
|
||||
use VDM\Joomla\Utilities\String\ComponentCodeNameHelper;
|
||||
use VDM\Joomla\Utilities\GetHelper;
|
||||
use VDM\Joomla\Componentbuilder\Extrusion\Helper\Extrusion;
|
||||
|
||||
@ -1460,6 +1461,9 @@ class Joomla_componentModel extends AdminModel
|
||||
{
|
||||
$data['system_name'] = $data['name'];
|
||||
}
|
||||
|
||||
// make sure that the component code name is safe.
|
||||
$data['name_code'] = ComponentCodeNameHelper::safe($data['name_code']);
|
||||
|
||||
// Set the GUID if empty or not valid
|
||||
if (empty($data['guid']) && $data['id'] > 0)
|
||||
|
Reference in New Issue
Block a user