mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
6th release
This commit is contained in:
@@ -133,7 +133,7 @@ class UDFWidget extends UDFWidgetTpl
|
||||
}
|
||||
else if ($jsonSchema->type == 'textarea')
|
||||
{
|
||||
|
||||
$this->_renderTextarea($jsonSchema);
|
||||
}
|
||||
else if ($jsonSchema->type == 'date')
|
||||
{
|
||||
@@ -156,15 +156,15 @@ class UDFWidget extends UDFWidgetTpl
|
||||
{
|
||||
$dropdownWidgetUDF = new DropdownWidgetUDF($this->_name, $this->_args);
|
||||
|
||||
$paramters = array();
|
||||
$parameters = array();
|
||||
|
||||
if (isset($jsonSchema->listValues->enum))
|
||||
{
|
||||
$paramters = $jsonSchema->listValues->enum;
|
||||
$parameters = $jsonSchema->listValues->enum;
|
||||
}
|
||||
else if (isset($jsonSchema->listValues->sql))
|
||||
{
|
||||
$paramters = $jsonSchema->listValues->sql;
|
||||
$parameters = $jsonSchema->listValues->sql;
|
||||
}
|
||||
|
||||
if ($multiple)
|
||||
@@ -172,7 +172,23 @@ class UDFWidget extends UDFWidgetTpl
|
||||
$dropdownWidgetUDF->setMultiple();
|
||||
}
|
||||
|
||||
$dropdownWidgetUDF->render($paramters);
|
||||
$dropdownWidgetUDF->render($parameters);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private function _renderTextarea($jsonSchema)
|
||||
{
|
||||
$textareaUDF = new TextareaUDF($this->_name, $this->_args);
|
||||
|
||||
$text = '';
|
||||
if (isset($jsonSchema->defaultValue))
|
||||
{
|
||||
$text = $jsonSchema->defaultValue;
|
||||
}
|
||||
|
||||
$textareaUDF->render($text);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user