From 1586bbd66adaa4c8fccc24710efa0f6a0b3e76e2 Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 10 Jun 2021 09:43:19 -0600 Subject: [PATCH] Import/Export: Avoid "Undefined variable: filter" error (cherry picked from commit d57df627a765e61ccf077a591d6cf5e5b59e86c6) --- .../inc/class.importexport_definition.inc.php | 7 ++++-- lit-element-starter-ts/src/my-input.ts | 25 +++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 lit-element-starter-ts/src/my-input.ts diff --git a/importexport/inc/class.importexport_definition.inc.php b/importexport/inc/class.importexport_definition.inc.php index 1ede7bc30b..8626819bf8 100644 --- a/importexport/inc/class.importexport_definition.inc.php +++ b/importexport/inc/class.importexport_definition.inc.php @@ -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) { diff --git a/lit-element-starter-ts/src/my-input.ts b/lit-element-starter-ts/src/my-input.ts new file mode 100644 index 0000000000..a3c86aec5d --- /dev/null +++ b/lit-element-starter-ts/src/my-input.ts @@ -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; + } +}