Added an after cancel custom code area also in connection with gh-418 in the admin view.

This commit is contained in:
2019-06-12 22:36:05 +02:00
parent eae13dff06
commit f03c6f5204
47 changed files with 4081 additions and 3952 deletions

View File

@ -155,7 +155,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getWaqfields()
public function getWarfields()
{
// Get the user object.
$user = JFactory::getUser();
@ -237,13 +237,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
foreach ($items as $nr => &$item)
{
// convert datatype
$item->datatype = $this->selectionTranslationWaqfields($item->datatype, 'datatype');
$item->datatype = $this->selectionTranslationWarfields($item->datatype, 'datatype');
// convert indexes
$item->indexes = $this->selectionTranslationWaqfields($item->indexes, 'indexes');
$item->indexes = $this->selectionTranslationWarfields($item->indexes, 'indexes');
// convert null_switch
$item->null_switch = $this->selectionTranslationWaqfields($item->null_switch, 'null_switch');
$item->null_switch = $this->selectionTranslationWarfields($item->null_switch, 'null_switch');
// convert store
$item->store = $this->selectionTranslationWaqfields($item->store, 'store');
$item->store = $this->selectionTranslationWarfields($item->store, 'store');
}
}
@ -257,7 +257,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
*
* @return translatable string
*/
public function selectionTranslationWaqfields($value,$name)
public function selectionTranslationWarfields($value,$name)
{
// Array of datatype language strings
if ($name === 'datatype')