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
ConfigItem Klassen-Definition
ConfigItem Klassen-Definition
OTRS 5.0.8
ITSM 5.0.14
CentOS 7
ITSM 5.0.14
CentOS 7
Re: ConfigItem Klassen-Definition
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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: ConfigItem Klassen-Definition
DIe meisten Input Typen verstehen ein ValueDefault.
Also z.B.:
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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: ConfigItem Klassen-Definition
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
ITSM 5.0.14
CentOS 7
Re: ConfigItem Klassen-Definition
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?
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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com