* Infolog: Add missing transformation array for infolog-widget

This commit is contained in:
Hadi Nategh 2018-11-12 17:17:36 +01:00
parent 4c162153d6
commit df9a4419e4

View File

@ -37,6 +37,31 @@ use EGroupware\Api\Etemplate;
*/
class infolog_widget extends Etemplate\Widget\Entry
{
/**
* Array with a transformation description, based on attributes to modify.
* @see etemplate_widget_transformer
*
* @var array
*/
protected static $transformation = array(
'type' => array(
'infolog-fields' => array(
'sel_options' => array('__callback__' => '_get_fields'),
'type' => 'select',
'no_lang' => true,
'options' => 'None',
),
'__default__' => array(
'options' => array(
'' => array('id' => '@value[@id]'),
// Others added automatically in constructor
'__default__' => array('type' => 'label', 'options' => ''),
),
'no_lang' => 1,
),
),
);
/**
* exported methods of this class
*
@ -144,4 +169,4 @@ class infolog_widget extends Etemplate\Widget\Entry
}
// register widgets for etemplate2
Etemplate\Widget::registerWidget('infolog_widget',array('infolog-value', 'infolog-fields'));
Etemplate\Widget::registerWidget('infolog_widget',array('infolog-value', 'infolog-fields'));