Skip to content

Commit

Permalink
Merge branch 'dev' into MaxNumberOfOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
dennykorsukewitz authored Aug 29, 2024
2 parents 82e8fea + 417b282 commit c46741c
Show file tree
Hide file tree
Showing 109 changed files with 541 additions and 63 deletions.
9 changes: 7 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# 7.1.3 2024-??-??
- 2024-08-21 Improved CSS for skin 'Dark'. [#558](https://github.com/znuny/Znuny/issues/558)
- 2024-08-27 Fixed console command Admin::Service::Add - does not work after ITSMCore is installed.
- 2024-08-26 Added auto mapping for unknown actions to Znuny.Form.Input.FieldIDMapping.
- 2024-08-23 Fixed evaluation of ticket ID parameter in generic interface operation TicketGet.
- 2024-08-22 Console command Admin::PostMasterFilter::Import now will also update existing filters instead of only create new ones. Thanks to @meisterheister for reporting the issue. [#527](https://github.com/znuny/Znuny/issues/527)
- 2024-08-22 Added '--single-transaction' option to scripts/backup.pl for MySQL/MariaDB. The --single-transaction flag will start a transaction before running.
- 2024-08-21 Improved CSS for skin 'Dark'. [#584](https://github.com/znuny/Znuny/issues/584)
- 2024-08-21 Sector Nord AG: Fixed overflow of dynamic field groups in AgentTicketZoom process widget. Thanks to Sector Nord AG (@jsinagowitz). [PR#553](https://github.com/znuny/Znuny/pull/553)
- 2024-06-26 Fixed wrong inversion of avatar image when using skin 'Dark'. [#558](https://github.com/znuny/Znuny/issues/558)
- 2024-06-26 Fixed wrong inversion of avatar image when using skin 'Dark'. [#584](https://github.com/znuny/Znuny/issues/584)

# 7.1.2 2024-07-24
- 2024-07-24 Fixed migration for databases other than MySQL and MariaDB.
Expand Down
9 changes: 9 additions & 0 deletions Kernel/Config/Files/XML/Znuny.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3645,4 +3645,13 @@
</Hash>
</Value>
</Setting>

<Setting Name="AutoAttributFieldIDMapping" Required="0" Valid="1">
<Description Translatable="1">Adds the field mapping for AgentTicketActionCommon for an unknown action. Used by Znuny.Form.Input.</Description>
<Navigation>Frontend::Base</Navigation>
<Value>
<Item ValueType="Checkbox">1</Item>
</Value>
</Setting>

</otrs_config>
11 changes: 10 additions & 1 deletion Kernel/GenericInterface/Operation/Ticket/TicketGet.pm
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ sub Run {
# all needed variables
my @TicketIDs;
if ( IsStringWithData( $Param{Data}->{TicketID} ) ) {
@TicketIDs = split( /,/, $Param{Data}->{TicketID} );
@TicketIDs = split( /\s*,\s*/, $Param{Data}->{TicketID} );
}
elsif ( IsArrayRefWithData( $Param{Data}->{TicketID} ) ) {
@TicketIDs = @{ $Param{Data}->{TicketID} };
Expand All @@ -286,6 +286,15 @@ sub Run {
);
}

# Check for IDs being integers.
my $NumberOfIntegers = grep { $_ =~ m{\A[1-9]\d*\z} } @TicketIDs;
if ( $NumberOfIntegers != @TicketIDs ) {
return $Self->ReturnError(
ErrorCode => 'TicketGet.WrongStructure',
ErrorMessage => "TicketGet: Invalid ticket ID parameter(s) found!",
);
}

# Get the list of article dynamic fields
my $ArticleDynamicFieldList = $Kernel::OM->Get('Kernel::System::DynamicField')->DynamicFieldList(
ObjectType => 'Article',
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/ar_SA.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sub Data {
$Self->{DateFormatShort} = '%D.%M.%Y';
$Self->{DateInputFormat} = '%D.%M.%Y';
$Self->{DateInputFormatLong} = '%D.%M.%Y - %T';
$Self->{Completeness} = 0.074688115561392;
$Self->{Completeness} = 0.074675857541441;

# csv separator
$Self->{Separator} = '';
Expand Down Expand Up @@ -7903,6 +7903,8 @@ sub Data {
'',
'Mapping of ticket priority to X-Priority email header for outgoing emails of communication channel "system".' =>
'',
'Adds the field mapping for AgentTicketActionCommon for an unknown action. Used by Znuny.Form.Input.' =>
'',

# XML Definition: scripts/database/initial_insert.xml
'invalid-temporarily' => 'غير فعال مؤقتاً',
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/bg.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sub Data {
$Self->{DateFormatShort} = '%D.%M.%Y';
$Self->{DateInputFormat} = '%D.%M.%Y - %T';
$Self->{DateInputFormatLong} = '%D.%M.%Y - %T';
$Self->{Completeness} = 0.196323046618516;
$Self->{Completeness} = 0.196290825537502;

# csv separator
$Self->{Separator} = ';';
Expand Down Expand Up @@ -7900,6 +7900,8 @@ sub Data {
'',
'Mapping of ticket priority to X-Priority email header for outgoing emails of communication channel "system".' =>
'',
'Adds the field mapping for AgentTicketActionCommon for an unknown action. Used by Znuny.Form.Input.' =>
'',

# XML Definition: scripts/database/initial_insert.xml
'invalid-temporarily' => 'временно невалиден',
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/ca.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sub Data {
$Self->{DateFormatShort} = '%D.%M.%Y';
$Self->{DateInputFormat} = '%D.%M.%Y';
$Self->{DateInputFormatLong} = '%D.%M.%Y - %T';
$Self->{Completeness} = 0.205515430072226;
$Self->{Completeness} = 0.205481700311833;

# csv separator
$Self->{Separator} = '';
Expand Down Expand Up @@ -7900,6 +7900,8 @@ sub Data {
'',
'Mapping of ticket priority to X-Priority email header for outgoing emails of communication channel "system".' =>
'',
'Adds the field mapping for AgentTicketActionCommon for an unknown action. Used by Znuny.Form.Input.' =>
'',

# XML Definition: scripts/database/initial_insert.xml
'invalid-temporarily' => 'invàlid-temporalment',
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/cs.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ sub Data {
$Self->{DateFormatShort} = '%D/%M/%Y';
$Self->{DateInputFormat} = '%D/%M/%Y';
$Self->{DateInputFormatLong} = '%D/%M/%Y - %T';
$Self->{Completeness} = 0.243598161523309;
$Self->{Completeness} = 0.243558181519777;

# csv separator
$Self->{Separator} = ';';
Expand Down Expand Up @@ -7906,6 +7906,8 @@ sub Data {
'',
'Mapping of ticket priority to X-Priority email header for outgoing emails of communication channel "system".' =>
'',
'Adds the field mapping for AgentTicketActionCommon for an unknown action. Used by Znuny.Form.Input.' =>
'',

# XML Definition: scripts/database/initial_insert.xml
'invalid-temporarily' => 'neplatný-dočasně',
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/da.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sub Data {
$Self->{DateFormatShort} = '%D.%M.%Y';
$Self->{DateInputFormat} = '%D.%M.%Y';
$Self->{DateInputFormatLong} = '%D.%M.%Y - %T';
$Self->{Completeness} = 0.344714379514117;
$Self->{Completeness} = 0.34465780403742;

# csv separator
$Self->{Separator} = '';
Expand Down Expand Up @@ -7902,6 +7902,8 @@ sub Data {
'',
'Mapping of ticket priority to X-Priority email header for outgoing emails of communication channel "system".' =>
'',
'Adds the field mapping for AgentTicketActionCommon for an unknown action. Used by Znuny.Form.Input.' =>
'',

# XML Definition: scripts/database/initial_insert.xml
'invalid-temporarily' => 'ugyldig-midlertidigt',
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/de.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sub Data {
$Self->{DateFormatShort} = '%D.%M.%Y';
$Self->{DateInputFormat} = '%D.%M.%Y';
$Self->{DateInputFormatLong} = '%D.%M.%Y - %T';
$Self->{Completeness} = 0.994418910045962;
$Self->{Completeness} = 0.99441982602987;

# csv separator
$Self->{Separator} = ';';
Expand Down Expand Up @@ -7902,6 +7902,8 @@ sub Data {
'Mapping der Ticketpriorität zum X-Priority E-Mail-Header für ausgehende E-Mails des Kommunikationskanals "Agent".',
'Mapping of ticket priority to X-Priority email header for outgoing emails of communication channel "system".' =>
'Mapping der Ticketpriorität zum X-Priority E-Mail-Header für ausgehende E-Mails des Kommunikationskanals "System".',
'Adds the field mapping for AgentTicketActionCommon for an unknown action. Used by Znuny.Form.Input.' =>
'Ergänzt Feld-Mapping für AgentTicketActionCommon für unbekannte Action. Wird von Znuny.Form.Input verwendet.',

# XML Definition: scripts/database/initial_insert.xml
'invalid-temporarily' => 'ungültig-temporär',
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/el.pm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sub Data {
$Self->{DateFormatShort} = '%D.%M.%Y';
$Self->{DateInputFormat} = '%D.%M.%Y';
$Self->{DateInputFormatLong} = '%D.%M.%Y - %T';
$Self->{Completeness} = 0.136736703873933;
$Self->{Completeness} = 0.136714262268177;

# csv separator
$Self->{Separator} = ';';
Expand Down Expand Up @@ -7905,6 +7905,8 @@ sub Data {
'',
'Mapping of ticket priority to X-Priority email header for outgoing emails of communication channel "system".' =>
'',
'Adds the field mapping for AgentTicketActionCommon for an unknown action. Used by Znuny.Form.Input.' =>
'',

# XML Definition: scripts/database/initial_insert.xml
'invalid-temporarily' => 'Προσωρινά Ακυρο',
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/en_CA.pm
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ sub Data {
$Self->{DateFormatShort} = '%Y-%M-%D';
$Self->{DateInputFormat} = '%Y-%M-%D';
$Self->{DateInputFormatLong} = '%Y-%M-%D - %T';
$Self->{Completeness} = 0.00262639527248851;
$Self->{Completeness} = 0.00262596422123749;

# csv separator
$Self->{Separator} = ',';
Expand Down Expand Up @@ -7905,6 +7905,8 @@ sub Data {
'',
'Mapping of ticket priority to X-Priority email header for outgoing emails of communication channel "system".' =>
'',
'Adds the field mapping for AgentTicketActionCommon for an unknown action. Used by Znuny.Form.Input.' =>
'',

# XML Definition: scripts/database/initial_insert.xml
'invalid-temporarily' => '',
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/en_GB.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sub Data {
$Self->{DateFormatShort} = '%D/%M/%Y';
$Self->{DateInputFormat} = '%D/%M/%Y';
$Self->{DateInputFormatLong} = '%D/%M/%Y - %T';
$Self->{Completeness} = 0.602921864740643;
$Self->{Completeness} = 0.60282291153783;

# csv separator
$Self->{Separator} = ',';
Expand Down Expand Up @@ -7902,6 +7902,8 @@ sub Data {
'',
'Mapping of ticket priority to X-Priority email header for outgoing emails of communication channel "system".' =>
'',
'Adds the field mapping for AgentTicketActionCommon for an unknown action. Used by Znuny.Form.Input.' =>
'',

# XML Definition: scripts/database/initial_insert.xml
'invalid-temporarily' => 'invalid-temporarily',
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/es.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ sub Data {
$Self->{DateFormatShort} = '%D/%M/%Y';
$Self->{DateInputFormat} = '%D/%M/%Y';
$Self->{DateInputFormatLong} = '%D/%M/%Y - %T';
$Self->{Completeness} = 0.593893630991464;
$Self->{Completeness} = 0.593796159527326;

# csv separator
$Self->{Separator} = ';';
Expand Down Expand Up @@ -7913,6 +7913,8 @@ El control del acceso adicional para demostrar o no demostrar éste enlace puede
'',
'Mapping of ticket priority to X-Priority email header for outgoing emails of communication channel "system".' =>
'',
'Adds the field mapping for AgentTicketActionCommon for an unknown action. Used by Znuny.Form.Input.' =>
'',

# XML Definition: scripts/database/initial_insert.xml
'invalid-temporarily' => 'temporalmente-no-válido',
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/es_CO.pm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sub Data {
$Self->{DateFormatShort} = '%D/%M/%Y';
$Self->{DateInputFormat} = '%D/%M/%Y';
$Self->{DateInputFormatLong} = '%D/%M/%Y - %T';
$Self->{Completeness} = 0.324688115561392;
$Self->{Completeness} = 0.324634826850484;

# csv separator
$Self->{Separator} = ';';
Expand Down Expand Up @@ -7901,6 +7901,8 @@ sub Data {
'',
'Mapping of ticket priority to X-Priority email header for outgoing emails of communication channel "system".' =>
'',
'Adds the field mapping for AgentTicketActionCommon for an unknown action. Used by Znuny.Form.Input.' =>
'',

# XML Definition: scripts/database/initial_insert.xml
'invalid-temporarily' => 'temporalmente-inválido',
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/es_MX.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sub Data {
$Self->{DateFormatShort} = '%D/%M/%Y';
$Self->{DateInputFormat} = '%D/%M/%Y';
$Self->{DateInputFormatLong} = '%D/%M/%Y - %T';
$Self->{Completeness} = 0.728988837820092;
$Self->{Completeness} = 0.72886919415723;

# csv separator
$Self->{Separator} = ';';
Expand Down Expand Up @@ -7900,6 +7900,8 @@ sub Data {
'',
'Mapping of ticket priority to X-Priority email header for outgoing emails of communication channel "system".' =>
'',
'Adds the field mapping for AgentTicketActionCommon for an unknown action. Used by Znuny.Form.Input.' =>
'',

# XML Definition: scripts/database/initial_insert.xml
'invalid-temporarily' => 'temporalmente-inválido',
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/et.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sub Data {
$Self->{DateFormatShort} = '%D.%M.%Y';
$Self->{DateInputFormat} = '%D.%M.%Y';
$Self->{DateInputFormatLong} = '%D.%M.%Y - %T';
$Self->{Completeness} = 0.165298752462246;
$Self->{Completeness} = 0.165271623174134;

# csv separator
$Self->{Separator} = '';
Expand Down Expand Up @@ -7900,6 +7900,8 @@ sub Data {
'',
'Mapping of ticket priority to X-Priority email header for outgoing emails of communication channel "system".' =>
'',
'Adds the field mapping for AgentTicketActionCommon for an unknown action. Used by Znuny.Form.Input.' =>
'',

# XML Definition: scripts/database/initial_insert.xml
'invalid-temporarily' => 'ajutiselt kehtetu',
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/fa.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sub Data {
$Self->{DateFormatShort} = '%D.%M.%Y';
$Self->{DateInputFormat} = '%D.%M.%Y';
$Self->{DateInputFormatLong} = '%D.%M.%Y - %T';
$Self->{Completeness} = 0.615397242284964;
$Self->{Completeness} = 0.615296241588708;

# csv separator
$Self->{Separator} = '';
Expand Down Expand Up @@ -7905,6 +7905,8 @@ sub Data {
'',
'Mapping of ticket priority to X-Priority email header for outgoing emails of communication channel "system".' =>
'',
'Adds the field mapping for AgentTicketActionCommon for an unknown action. Used by Znuny.Form.Input.' =>
'',

# XML Definition: scripts/database/initial_insert.xml
'invalid-temporarily' => 'موقتا غیر معتبر',
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/fi.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sub Data {
$Self->{DateFormatShort} = '%D.%M.%Y';
$Self->{DateInputFormat} = '%D.%M.%Y';
$Self->{DateInputFormatLong} = '%D.%M.%Y - %T';
$Self->{Completeness} = 0.188936309914642;
$Self->{Completeness} = 0.188905301165272;

# csv separator
$Self->{Separator} = ';';
Expand Down Expand Up @@ -7902,6 +7902,8 @@ sub Data {
'',
'Mapping of ticket priority to X-Priority email header for outgoing emails of communication channel "system".' =>
'',
'Adds the field mapping for AgentTicketActionCommon for an unknown action. Used by Znuny.Form.Input.' =>
'',

# XML Definition: scripts/database/initial_insert.xml
'invalid-temporarily' => 'Poistettu käytöstä välikaikaisesti',
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/fr.pm
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ sub Data {
$Self->{DateFormatShort} = '%D.%M.%Y';
$Self->{DateInputFormat} = '%D.%M.%Y';
$Self->{DateInputFormatLong} = '%D.%M.%Y - %T';
$Self->{Completeness} = 0.382140512147078;
$Self->{Completeness} = 0.382077794190054;

# csv separator
$Self->{Separator} = ';';
Expand Down Expand Up @@ -7908,6 +7908,8 @@ sub Data {
'',
'Mapping of ticket priority to X-Priority email header for outgoing emails of communication channel "system".' =>
'',
'Adds the field mapping for AgentTicketActionCommon for an unknown action. Used by Znuny.Form.Input.' =>
'',

# XML Definition: scripts/database/initial_insert.xml
'invalid-temporarily' => 'temporairement invalidé',
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/fr_CA.pm
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ sub Data {
$Self->{DateFormatShort} = '%D.%M.%Y';
$Self->{DateInputFormat} = '%D.%M.%Y';
$Self->{DateInputFormatLong} = '%D.%M.%Y - %T';
$Self->{Completeness} = 0.327314510833881;
$Self->{Completeness} = 0.327260791071722;

# csv separator
$Self->{Separator} = ';';
Expand Down Expand Up @@ -7907,6 +7907,8 @@ sub Data {
'',
'Mapping of ticket priority to X-Priority email header for outgoing emails of communication channel "system".' =>
'',
'Adds the field mapping for AgentTicketActionCommon for an unknown action. Used by Znuny.Form.Input.' =>
'',

# XML Definition: scripts/database/initial_insert.xml
'invalid-temporarily' => 'temporairement non valide',
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/gl.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sub Data {
$Self->{DateFormatShort} = '%D/%M/%Y';
$Self->{DateInputFormat} = '%D/%M/%Y';
$Self->{DateInputFormatLong} = '%D/%M/%Y - %T';
$Self->{Completeness} = 0.461753118844386;
$Self->{Completeness} = 0.461677334646315;

# csv separator
$Self->{Separator} = ';';
Expand Down Expand Up @@ -7900,6 +7900,8 @@ sub Data {
'',
'Mapping of ticket priority to X-Priority email header for outgoing emails of communication channel "system".' =>
'',
'Adds the field mapping for AgentTicketActionCommon for an unknown action. Used by Znuny.Form.Input.' =>
'',

# XML Definition: scripts/database/initial_insert.xml
'invalid-temporarily' => 'Non valido temporalmente',
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/he.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sub Data {
$Self->{DateFormatShort} = '%D/%M/%Y';
$Self->{DateInputFormat} = '%D/%M/%Y';
$Self->{DateInputFormatLong} = '%D/%M/%Y - %T';
$Self->{Completeness} = 0.222586999343401;
$Self->{Completeness} = 0.222550467749877;

# csv separator
$Self->{Separator} = '';
Expand Down Expand Up @@ -7906,6 +7906,8 @@ sub Data {
'',
'Mapping of ticket priority to X-Priority email header for outgoing emails of communication channel "system".' =>
'',
'Adds the field mapping for AgentTicketActionCommon for an unknown action. Used by Znuny.Form.Input.' =>
'',

# XML Definition: scripts/database/initial_insert.xml
'invalid-temporarily' => 'לא תקף זמנית',
Expand Down
Loading

0 comments on commit c46741c

Please sign in to comment.