
Hi Boris, zum einen musst Du auch die Typen “Dummy” mit Key, Name, etc. versehen, also innerhalb der Input Definition. Zum anderen hast Du weiter unten glaube ich ein paar Klammern doppelt. Tip: Du solltest mit Spaces anstatt Tabs arbeiten (oder aber Tabs = 4 Spaces), dann kann man das besser lesen :-) On 18.12.2012, at 09:27, Boris Wagener wrote:
Hallo Liste, ich habe gerade meine Klassendefinitionen kaputt konfiguriert. Nur warum weiss ich nicht.
So sieht die Definition aus die an jedes Item kommt.
[ ################################ #### allgemeine Daten #### ################################
{ Type => 'Dummy', Translation => 1, Required => 1, },
{ Type => 'Dummy', Translation => 1, Required => 1, },
{ Type => 'Dummy', Translation => 1, Required => 1, },
{ Key => 'Eigentuemer', Name => 'Eigentuemer', Input => { Type => 'GeneralCatalog', Class => 'ITSM::ConfigItem::Eigentuemer', Translation => 1, Required => 1, }, },
{ Key => 'Anschaffungsdatum', Name => 'Anschaffungsdatum', Searchable => 1, Required => 1, Input => { Type => 'Date', }, },
{ Key => 'Inventarnummer', Name => 'Inventarnummer', Input => { Type => 'Text', Size => 50, MaxLength => 100, Required => 1, }, },
{ Key => 'Hersteller', Name => 'Hersteller', Input => { Type => 'Text', Size => 50, MaxLength => 100, },
},
{ Key => 'Typenbezeichnung', Name => 'Typenbezeichnung', Input => { Type => 'Text', Size => 50, MaxLength => 100, }, },
{ Key => 'Seriennummer', Name => 'Seriennummer', Input => { Type => 'Text', Size => 50, MaxLength => 100, Required => 1, },
},
{ Key => 'Garantie', Name => 'Garantie', Input => { Type => 'GeneralCatalog', Class => 'ITSM::ConfigItem::YesNo', Translation => 1, }, },
{ Key => 'Garantiegeber', Name => 'Garantiegeber', Input => { Type => 'Text', Size => 50, MaxLength => 100, }, },
{ Key => 'Garantiedauer', Name => 'Garantiedauer', Input => { Type => 'Text', Size => 50, MaxLength => 100, }, },
{ Key => 'Garantieart', Name => 'Garantieart', Input => { Type => 'Text', Size => 50, MaxLength => 100, }, },
{ Key => 'Wartungsvertrag', Name => 'Wartungsvertrag', Input => { Type => 'GeneralCatalog', Class => 'ITSM::ConfigItem::YesNo', Translation => 1, }, },
{ Key => 'Wartungsgeber', Name => 'Wartungsgeber', Input => { Type => 'Text', Size => 50, MaxLength => 100, }, },
{ Key => 'Wartungsvertrag bis', Name => 'Wartungsvertrag bis', Searchable => 1, Input => { Type => 'Date', }, },
{ Key => 'Wartungsfristen', Name => 'Wartungsfristen', Input => { Type => 'Text', Size => 50, MaxLength => 100, }, },
{ Key => 'Leasing', Name => 'Leasing', Input => { Type => 'GeneralCatalog', Class => 'ITSM::ConfigItem::YesNo', Translation => 1, }, },
{ Key => 'Leasinggeber', Name => 'Leasinggeber', Input => { Type => 'GeneralCatalog', Class => 'ITSM::ConfigItem::Leasinggeber', Translation => 1, }, },
{ Key => 'Leasingbeginn', Name => 'Leasingbeginn', Searchable => 1, Input => { Type => 'Date', }, },
{ Key => 'Leasingauslauf', Name => 'Leasingauslauf', Searchable => 1, Input => { Type => 'Date', }, },
{ Key => 'Leasingschien/- Vertrag', Name => 'Leasingschien/- Vertrag', Input => { Type => 'Text', Size => 50, MaxLength => 100, }, },
{ Key => 'Lieferant', Name => 'Lieferant', Input => { Type => 'GeneralCatalog', Class => 'ITSM::ConfigItem::Lieferant', Translation => 1, }, },
{ Key => 'Rechnungsnummer', Name => 'Rechnungsnummer', Input => { Type => 'Text', Size => 50, MaxLength => 100, }, },
{ Key => 'Standort', Name => 'Standort', Input => { Type => 'GeneralCatalog', Class => 'ITSM::ConfigItem::Standort', Translation => 1, Required => 1, }, },
{ Key => 'Owner', Name => 'Owner', Searchable => 1, Input => { Type => 'Customer', }, },
{ Key => 'Firma zug. Benutzer', Name => 'Firma zug. Benutzer', Input => { Type => 'GeneralCatalog', Class => 'ITSM::ConfigItem::Firma', Translation => 1, }, },
{ Key => 'Abteilung zug. Benutzer', Name => 'Abteilung zug. Benutzer', Input => { Type => 'GeneralCatalog', Class => 'ITSM::ConfigItem::Abteilung', Translation => 1, }, },
{ Key => 'Referat zug. Benutzer', Name => 'Referat zug. Benutzer', Input => { Type => 'GeneralCatalog', Class => 'ITSM::ConfigItem::Referat', Translation => 1, }, },
{ Type => 'Dummy', Translation => 1, Required => 1, },
{ Type => 'Dummy', Translation => 1, Required => 1, },
{ Type => 'Dummy', Translation => 1, Required => 1, },
{ Type => 'Dummy', Translation => 1, Required => 1, },
Sub => [
{ Key => 'bisherige Reparaturen', Name => 'bisherige Reparaturen', Searchable => 1, Input => { Type => 'TextArea', }, },
{ Key => 'Anmerkungen', Name => 'Anmerkungen', Searchable => 1, Input => { Type => 'TextArea', }, }, ],
################################################### #### ab hier Gerätespezifische Daten #### ################################################### ];
Das Problem liegt scheinbar irgendwo bei den Sub- Attributen.
Gemeckert hats nicht dass was an der Config falsch wäre, aber wenn ich jetzt die Klassendefinition wieder ändern will bekomme ich das:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, otrs-test@xy.local and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2.15 (CentOS) Server at otrs002.coo.local Port 80
Wie kann ich das jetzt wieder gerade biegen?
Boris --------------------------------------------------------------------- OTRS mailing list: otrs-de - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs-de To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs-de
Cheers, Nils -- http://webint.cryptonode.de / a Fractal project