Resolved gh-463 to insure data types that require length is enforced by default in the GUI.
This commit is contained in:
@ -203,7 +203,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
||||
*
|
||||
* @return mixed An array of data items on success, false on failure.
|
||||
*/
|
||||
public function getVxwfields()
|
||||
public function getVxyfields()
|
||||
{
|
||||
// Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
@ -291,13 +291,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
// convert datatype
|
||||
$item->datatype = $this->selectionTranslationVxwfields($item->datatype, 'datatype');
|
||||
$item->datatype = $this->selectionTranslationVxyfields($item->datatype, 'datatype');
|
||||
// convert indexes
|
||||
$item->indexes = $this->selectionTranslationVxwfields($item->indexes, 'indexes');
|
||||
$item->indexes = $this->selectionTranslationVxyfields($item->indexes, 'indexes');
|
||||
// convert null_switch
|
||||
$item->null_switch = $this->selectionTranslationVxwfields($item->null_switch, 'null_switch');
|
||||
$item->null_switch = $this->selectionTranslationVxyfields($item->null_switch, 'null_switch');
|
||||
// convert store
|
||||
$item->store = $this->selectionTranslationVxwfields($item->store, 'store');
|
||||
$item->store = $this->selectionTranslationVxyfields($item->store, 'store');
|
||||
}
|
||||
}
|
||||
|
||||
@ -311,7 +311,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
||||
*
|
||||
* @return translatable string
|
||||
*/
|
||||
public function selectionTranslationVxwfields($value,$name)
|
||||
public function selectionTranslationVxyfields($value,$name)
|
||||
{
|
||||
// Array of datatype language strings
|
||||
if ($name === 'datatype')
|
||||
|
Reference in New Issue
Block a user