Urgent fix to the fields area to address the extra field options, and fields with 0 being removed. Added the option to add a field and not add it to the database, so it will show in the edit view but will not be stored to the database. This is to use javascript/php to use that field value, and then drop it.
This commit is contained in:
@ -972,11 +972,11 @@ class ComponentbuilderControllerAjax extends JControllerLegacy
|
||||
try
|
||||
{
|
||||
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
|
||||
$fieldtypeValue = $jinput->get('fieldtype', NULL, 'INT');
|
||||
$propertyValue = $jinput->get('property', NULL, 'WORD');
|
||||
if($fieldtypeValue && $propertyValue && $user->id != 0)
|
||||
$fieldtypeValue = $jinput->get('fieldtype', NULL, 'ALNUM');
|
||||
if($propertyValue && $fieldtypeValue && $user->id != 0)
|
||||
{
|
||||
$result = $this->getModel('ajax')->getFieldPropertyDesc($fieldtypeValue, $propertyValue);
|
||||
$result = $this->getModel('ajax')->getFieldPropertyDesc($propertyValue, $fieldtypeValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user