Import/Export: Avoid "Undefined variable: filter" error

This commit is contained in:
nathangray 2021-06-10 09:43:19 -06:00
parent 9219536c2f
commit d57df627a7
2 changed files with 30 additions and 2 deletions

View File

@ -93,8 +93,11 @@ class importexport_definition implements importexport_iface_egw_record {
{
$options_data = importexport_arrayxml::xml2array( $this->definition['plugin_options'] );
$this->definition['plugin_options'] = (array)$options_data['root'];
if($this->definition['filter']) $filter = importexport_arrayxml::xml2array( $this->definition['filter'] );
$this->definition['filter'] = $filter['root'];
if($this->definition['filter'])
{
$filter = importexport_arrayxml::xml2array( $this->definition['filter'] );
$this->definition['filter'] = $filter['root'];
}
}
catch (Throwable $e)
{

View File

@ -0,0 +1,25 @@
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
import {LitElement, html, css} from 'lit';
import {customElement, property} from 'lit/decorators.js';
/**
* An example element.
*
* @slot - This element has a slot
* @csspart button - The button
*/
@customElement('my-input')
export class MyInput extends LitElement {
}
declare global {
interface HTMLElementTagNameMap {
'my-input': MyInput;
}
}