Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug - XML Setting with empty value, not changeable if used in a special order #579

Open
LuBroering opened this issue Jul 5, 2024 · 0 comments

Comments

@LuBroering
Copy link
Contributor

LuBroering commented Jul 5, 2024

Environment

  • Server OS: Linux
  • Browser: Firefox
  • Znuny version: 7.0.18

Expected behavior

On changing a Sysconfig value and clicking save, it should be saved and visible in the mask.

Actual behavior

On changing a Sysconfig value and clicking save, it is not visible in the mask.

How to reproduce

Steps to reproduce the behavior:

  1. Create a Sysconfig like below
  2. Change the TestValue
  3. Save
  4. It works for all but Test###005

Additional information

example File:

<?xml version="1.0" encoding="utf-8"?>
<otrs_config version="2.0" init="Application">
    <Setting Name="Test###001" Required="0" Valid="1">
        <Description Translatable="1">Test File for XML.</Description>
        <Navigation>Test</Navigation>
        <Value>
            <Hash>
                <Item Key="TestValue" ValueType="String">With Value</Item>
                <Item Key="Template" ValueType="Textarea">&lt;div title="[% Data.Test | html %]"&gt;[%Data.Test | html %]&lt;/div&gt;</Item>
                <Item Key="FieldType" ValueType="Select" SelectedID="Test1">
                    <Item ValueType="Option" Value="Test1" Translatable="1">Test1</Item>
                    <Item ValueType="Option" Value="Test2" Translatable="1">Test2</Item>
                </Item>
            </Hash>
        </Value>
    </Setting>
    <Setting Name="Test###002" Required="0" Valid="1">
        <Description Translatable="1">Test File for XML.</Description>
        <Navigation>Test</Navigation>
        <Value>
            <Hash>
                <Item Key="FieldType" ValueType="Select" SelectedID="Test1">
                    <Item ValueType="Option" Value="Test1" Translatable="1">Test1</Item>
                    <Item ValueType="Option" Value="Test2" Translatable="1">Test2</Item>
                </Item>
                <Item Key="TestValue" ValueType="String">With Value</Item>
                <Item Key="Template" ValueType="Textarea">&lt;div title="[% Data.Test | html %]"&gt;[%Data.Test | html %]&lt;/div&gt;</Item>
            </Hash>
        </Value>
    </Setting>
    <Setting Name="Test###003" Required="0" Valid="1">
        <Description Translatable="1">Test File for XML.</Description>
        <Navigation>Test</Navigation>
        <Value>
            <Hash>
                <Item Key="TestValue" ValueType="String">With Value</Item>
                <Item Key="FieldType" ValueType="Select" SelectedID="Test1">
                    <Item ValueType="Option" Value="Test1" Translatable="1">Test1</Item>
                    <Item ValueType="Option" Value="Test2" Translatable="1">Test2</Item>
                </Item>
                <Item Key="Template" ValueType="Textarea">&lt;div title="[% Data.Test | html %]"&gt;[%Data.Test | html %]&lt;/div&gt;</Item>
            </Hash>
        </Value>
    </Setting>
    <Setting Name="Test###004" Required="0" Valid="1">
        <Description Translatable="1">Test File for XML.</Description>
        <Navigation>Test</Navigation>
        <Value>
            <Hash>
                <Item Key="TestValue" ValueType="String"></Item>
                <Item Key="Template" ValueType="Textarea">&lt;div title="[% Data.Test | html %]"&gt;[%Data.Test | html %]&lt;/div&gt;</Item>
                <Item Key="FieldType" ValueType="Select" SelectedID="Test1">
                    <Item ValueType="Option" Value="Test1" Translatable="1">Test1</Item>
                    <Item ValueType="Option" Value="Test2" Translatable="1">Test2</Item>
                </Item>
            </Hash>
        </Value>
    </Setting>
    <Setting Name="Test###005" Required="0" Valid="1">
        <Description Translatable="1">Test File for XML.</Description>
        <Navigation>Test</Navigation>
        <Value>
            <Hash>
                <Item Key="FieldType" ValueType="Select" SelectedID="Test1">
                    <Item ValueType="Option" Value="Test1" Translatable="1">Test1</Item>
                    <Item ValueType="Option" Value="Test2" Translatable="1">Test2</Item>
                </Item>
                <Item Key="TestValue" ValueType="String"></Item>
                <Item Key="Template" ValueType="Textarea">&lt;div title="[% Data.Test | html %]"&gt;[%Data.Test | html %]&lt;/div&gt;</Item>
            </Hash>
        </Value>
    </Setting>
    <Setting Name="Test###006" Required="0" Valid="1">
        <Description Translatable="1">Test File for XML.</Description>
        <Navigation>Test</Navigation>
        <Value>
            <Hash>
                <Item Key="TestValue" ValueType="String"></Item>
                <Item Key="FieldType" ValueType="Select" SelectedID="Test1">
                    <Item ValueType="Option" Value="Test1" Translatable="1">Test1</Item>
                    <Item ValueType="Option" Value="Test2" Translatable="1">Test2</Item>
                </Item>
                <Item Key="Template" ValueType="Textarea">&lt;div title="[% Data.Test | html %]"&gt;[%Data.Test | html %]&lt;/div&gt;</Item>
            </Hash>
        </Value>
    </Setting>
</otrs_config>

Screenshots

grafik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant