Problem with empty Vacationlist in Config XML

Moderator: crythias

Post Reply
schaffel
Znuny newbie
Posts: 90
Joined: 20 May 2008, 12:50
Znuny Version: 3.1.X
Real Name: Felix
Company: SyroCon Consulting GmbH
Location: Darmstadt

Problem with empty Vacationlist in Config XML

Post by schaffel »

I try to configure the different Calendars we use for our SLAs in a xml config file.
We have a 24x7 SLA where I have to define the TimeVacationDaysOneTime and TimeVacationDays List as empty.

I tried to configure it like this:

Code: Select all

    <ConfigItem Name="TimeVacationDays::Calendar1" Required="1" Valid="1">
        <Description Translatable="1">Adds the permanent vacation days for the indicated calendar. Please use single
digit pattern for numbers from 1 to 9 (instead of 01 - 09).</Description>
        <Group>Framework</Group>
        <SubGroup>Core::Time::Calendar1</SubGroup>
        <Setting>
            <TimeVacationDays>
            </TimeVacationDays>
        </Setting>
    </ConfigItem>
When I run the RebuildConfig-Script I get an Error:

Code: Select all

]# bin/otrs.RebuildConfig.pl -?
otrs.RebuildConfig.pl - OTRS rebuild default config
Copyright (C) 2001-2015 xxx, http://otrs.com/
Can't use an undefined value as an ARRAY reference at /opt/otrs/Kernel/System/SysConfig.pm line 2271.
Is there any way to configure empty Vacation lists in xml?
I didn't find anything on that in the Documentation and all the default-calendars have at least one item defined. ;(

I think I could have done it as a perl (.pm) config file, but I tried to keep the base configuration in xml.

Code: Select all

$Self->{'TimeVacationDays::Calendar1'} =  {};
Thanky in advance.
production: OTRS 5.0.X | OTRS:ITSM 5.0.X | AWS-RDS MariaDB 10.1.X | CentOS 7

Gibt es im Raum Frankfurt/Darmstadt OTRS/ITSM-Benutzer, die an einem Erfahrungsaustausch interessiert sind? Dann meldet euch um mit Gleichgesinnten über OTRS in der Praxis und den ganzen Rest zu reden.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Problem with empty Vacationlist in Config XML

Post by reneeb »

Untested:

Code: Select all

        <Setting>
            <TimeVacationDays>
                <Item></Item>
            </TimeVacationDays>
        </Setting>
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Post Reply