ConfigItem Klassen-Definition

Hilfe zu Znuny Problemen aller Art
Locked
Calsonic
Znuny newbie
Posts: 44
Joined: 07 Nov 2011, 15:00
Znuny Version: 5.0.8

ConfigItem Klassen-Definition

Post by Calsonic »

Hallo zusammen,

ich habe eine Klassen-Definition hinzugefüg die wie folgt aussieht:

{
Key => 'Support',
Name => 'Support Link',
Searchable => 1,
Input => {
Type => 'TextArea',
Required => 1,
},
CountMin => 0,
CountDefault => 0,
},

Jetzt möchte ich wenn man das Feld per + hinzufügt in der Textbox schon ein Link drin steht.
Wie kann ich das hinbekommen?

Vielen Dank im Vorraus!

mfG
OTRS 5.0.8
ITSM 5.0.14

CentOS 7
Calsonic
Znuny newbie
Posts: 44
Joined: 07 Nov 2011, 15:00
Znuny Version: 5.0.8

Re: ConfigItem Klassen-Definition

Post by Calsonic »

Noch niemand ähnliches probiert?
OTRS 5.0.8
ITSM 5.0.14

CentOS 7
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: ConfigItem Klassen-Definition

Post by jojo »

Du musst ein Default Value für das Feld setzen
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Calsonic
Znuny newbie
Posts: 44
Joined: 07 Nov 2011, 15:00
Znuny Version: 5.0.8

Re: ConfigItem Klassen-Definition

Post by Calsonic »

Ja okay, ist klar. Aber wie / wo?
OTRS 5.0.8
ITSM 5.0.14

CentOS 7
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: ConfigItem Klassen-Definition

Post by jojo »

DIe meisten Input Typen verstehen ein ValueDefault.

Also z.B.:

Code: Select all

           Type => 'TextArea',
            Cols => '58',
            Rows => '10',
            ValueDefault => 'Description:',
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Calsonic
Znuny newbie
Posts: 44
Joined: 07 Nov 2011, 15:00
Znuny Version: 5.0.8

Re: ConfigItem Klassen-Definition

Post by Calsonic »

Leider nicht, hab es wie folgt abgeändert:

Code: Select all

    {
        Key => 'SupportLink',
        Name => 'Support Link',
        Searchable => 1,
        Input => {
            Type => 'Text',
            ValueDefault => 'http://www.dell.com/',
            Required => 1,
        },
        CountMin => 0,
        CountDefault => 0,
    },
OTRS 5.0.8
ITSM 5.0.14

CentOS 7
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: ConfigItem Klassen-Definition

Post by jojo »

Hallo,

ich habe es bei meinem System ausprobiert.

Wenn CountDefault => 1 ist wird das Default Value angezeigt. Bei jedem Item das aufgeklappt wird (also auch bei Mehrfach Items) wird der Default Wert nicht gezogen.

Das ist wohl ein Bug.

Kannst Du bitte einen Bugreport (http://bugs.otrs.orf) erstellen und hier dann die Nummer kundtun?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Calsonic
Znuny newbie
Posts: 44
Joined: 07 Nov 2011, 15:00
Znuny Version: 5.0.8

Re: ConfigItem Klassen-Definition

Post by Calsonic »

Bugreport #8578
OTRS 5.0.8
ITSM 5.0.14

CentOS 7
Locked