simplePlugin - CompositeAttribute inside SetAttribute
Hello,
I'm writing a class which inherits from simplePlugin. When I create a CompositeAttribute object inside a SetAttribute object seems to be everything OK. The compositeAttribute is instanced but when it is parsed to HTML it got broken.
I attached a screen.
Extra info: OS : RHEL 7.1
Plugin
'transferencias_programadas' => array ( 'name' => _( 'Transferencias programadas' ), 'icon' => 'geticon.php?context=devices&icon=terminal&size=16', 'class' => array ( 'fullwidth' ), 'attrs' => array ( new SetAttribute ( new CompositeAttribute ( _( '' ), _( 'wuBillerOperations' ), array ( new SelectAttribute ( _( 'Tipo de operación' ), _( '' ), 'a', FALSE , array ( 'enviar', 'recibir' ), "", array ( 'Enviar','Recibir' ) ), new SelectAttribute ( _( '
Protocolo' ), _( '' ), 'b', FALSE , array ( 'ftp', 'ftpa', 'ftps', 'ftpsa', 'sftp' ), "", array ('FTP','FTP Activo','FTPS','FTPS Activo','sFTP' ) ), new StringAttribute ( _( '
Usuario' ), _( '' ), 'c'), new StringAttribute ( _( '
Contraseña' ), _( '' ), 'd'), new StringAttribute ( _( '
Servidor' ), _( '' ), 'e'), new StringAttribute ( _( '
Puerto' ), _( '' ), 'f'), new StringAttribute ( _( '
Ubicación' ), _( '' ), 'g'), new StringAttribute ( _( '
Filtro' ), _( '' ), 'h'), new BooleanAttribute ( _( '
Eliminar luego de transferir' ), _( '' ), 'i'), new IntAttribute( _('
Lanzar cada N minutos'), _('Especificar cantidad de minutos'), 'j', FALSE, 5, 10080, "5" ), new FileAttribute ( _('
Clave privada') ), ), '%[^@:] %[^@:] %s %s %s %d %s %s %s %d %s', '%s %s %s %s %s %d %s %s %d %s', NULL, _( "Reglas") ) ), ) ),
HTML OUTPUT
Transferencias programadas
Reglas |
Tipo de operación None Enviar Recibir Protocolo None FTP FTP Activo FTPS FTPS Activo sFTP Usuario Contraseña Servidor Puerto Ubicación Filtro Eliminar luego de transferir Lanzar cada N minutos Clave privada |
(from redmine: issue id 4999, created on 2016-07-11, closed on 2016-09-12)