Added a global editor switch for all editors in JCB, the default is none. gh-305 Added two new fields to the admin view to target the getform method in the model.
This commit is contained in:
@ -125,7 +125,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
||||
*
|
||||
* @return mixed An array of data items on success, false on failure.
|
||||
*/
|
||||
public function getWadfields()
|
||||
public function getWaefields()
|
||||
{
|
||||
// Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
@ -207,13 +207,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
// convert datatype
|
||||
$item->datatype = $this->selectionTranslationWadfields($item->datatype, 'datatype');
|
||||
$item->datatype = $this->selectionTranslationWaefields($item->datatype, 'datatype');
|
||||
// convert indexes
|
||||
$item->indexes = $this->selectionTranslationWadfields($item->indexes, 'indexes');
|
||||
$item->indexes = $this->selectionTranslationWaefields($item->indexes, 'indexes');
|
||||
// convert null_switch
|
||||
$item->null_switch = $this->selectionTranslationWadfields($item->null_switch, 'null_switch');
|
||||
$item->null_switch = $this->selectionTranslationWaefields($item->null_switch, 'null_switch');
|
||||
// convert store
|
||||
$item->store = $this->selectionTranslationWadfields($item->store, 'store');
|
||||
$item->store = $this->selectionTranslationWaefields($item->store, 'store');
|
||||
}
|
||||
}
|
||||
|
||||
@ -227,7 +227,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
||||
*
|
||||
* @return translatable string
|
||||
*/
|
||||
public function selectionTranslationWadfields($value,$name)
|
||||
public function selectionTranslationWaefields($value,$name)
|
||||
{
|
||||
// Array of datatype language strings
|
||||
if ($name === 'datatype')
|
||||
@ -451,6 +451,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return $form;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user