Added Wiki to JCB. Resolved gh-125 to insure phone numbers are treated as strings. Resolved gh-128 by adding field to Joomla Component View that allows javascript to be added globaly. Converted a few more repeatable fields to subform fields, this is an ongoing project to remove repeatable fields from JCB.

This commit is contained in:
2017-10-06 16:53:22 +02:00
parent 5bb5e3e909
commit 3d1ba0321a
392 changed files with 7069 additions and 6609 deletions

View File

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