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:
2018-07-06 15:46:30 +02:00
parent 25650efa47
commit a9a0952ff3
74 changed files with 3291 additions and 3101 deletions

View File

@ -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;
}