Skip to content

Commit

Permalink
Issue #3035: Remove field order from pre-filled params.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter authored and bschmalhofer committed Feb 23, 2024
1 parent 943460b commit 88e42ff
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Kernel/Modules/AdminDynamicFieldCheckbox.pm
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ sub _Add {
if ( IsHashRefWithData($FieldConfig) ) {

# copy standard stuff
for my $Key (qw(ObjectType FieldType FieldOrder Label Name ValidID)) {
for my $Key (qw(ObjectType FieldType Label Name ValidID)) {
$GetParam{$Key} = $FieldConfig->{$Key};
}

Expand Down
2 changes: 1 addition & 1 deletion Kernel/Modules/AdminDynamicFieldContactWD.pm
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ sub _Add {
if ( IsHashRefWithData($FieldConfig) ) {

# copy standard stuff
for my $Key (qw(ObjectType FieldType FieldOrder Label Name ValidID)) {
for my $Key (qw(ObjectType FieldType Label Name ValidID)) {
$GetParam{$Key} = $FieldConfig->{$Key};
}

Expand Down
2 changes: 1 addition & 1 deletion Kernel/Modules/AdminDynamicFieldDB.pm
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ sub _Add {
if ( IsHashRefWithData($FieldConfig) ) {

# copy standard stuff
for my $Key (qw(ObjectType FieldType FieldOrder Label Name ValidID)) {
for my $Key (qw(ObjectType FieldType Label Name ValidID)) {
$GetParam{$Key} = $FieldConfig->{$Key};
}

Expand Down
2 changes: 1 addition & 1 deletion Kernel/Modules/AdminDynamicFieldDateTime.pm
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ sub _Add {
if ( IsHashRefWithData($FieldConfig) ) {

# copy standard stuff
for my $Key (qw(ObjectType FieldType FieldOrder Label Name ValidID)) {
for my $Key (qw(ObjectType FieldType Label Name ValidID)) {
$GetParam{$Key} = $FieldConfig->{$Key};
}

Expand Down
2 changes: 1 addition & 1 deletion Kernel/Modules/AdminDynamicFieldDropdown.pm
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ sub _Add {
if ( IsHashRefWithData($FieldConfig) ) {

# copy standard stuff
for my $Key (qw(ObjectType FieldType FieldOrder Label Name ValidID)) {
for my $Key (qw(ObjectType FieldType Label Name ValidID)) {
$GetParam{$Key} = $FieldConfig->{$Key};
}

Expand Down
2 changes: 1 addition & 1 deletion Kernel/Modules/AdminDynamicFieldLens.pm
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ sub _Add {
if ( IsHashRefWithData($FieldConfig) ) {

# copy standard stuff
for my $Key (qw(ObjectType FieldType FieldOrder Label Name ValidID)) {
for my $Key (qw(ObjectType FieldType Label Name ValidID)) {
$GetParam{$Key} = $FieldConfig->{$Key};
}

Expand Down
2 changes: 1 addition & 1 deletion Kernel/Modules/AdminDynamicFieldMultiselect.pm
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ sub _Add {
if ( IsHashRefWithData($FieldConfig) ) {

# copy standard stuff
for my $Key (qw(ObjectType FieldType FieldOrder Label Name ValidID)) {
for my $Key (qw(ObjectType FieldType Label Name ValidID)) {
$GetParam{$Key} = $FieldConfig->{$Key};
}

Expand Down
2 changes: 1 addition & 1 deletion Kernel/Modules/AdminDynamicFieldReference.pm
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ sub _Add {
if ( IsHashRefWithData($FieldConfig) ) {

# copy standard stuff
for my $Key (qw(ObjectType FieldType FieldOrder Label Name ValidID)) {
for my $Key (qw(ObjectType FieldType Label Name ValidID)) {
$GetParam{$Key} = $FieldConfig->{$Key};
}

Expand Down
2 changes: 1 addition & 1 deletion Kernel/Modules/AdminDynamicFieldScript.pm
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ sub Run {
if ( IsHashRefWithData($FieldConfig) ) {

# copy standard stuff
for my $Key (qw(ObjectType FieldType FieldOrder Label Name ValidID)) {
for my $Key (qw(ObjectType FieldType Label Name ValidID)) {
$Param{$Key} = $FieldConfig->{$Key};
}

Expand Down
2 changes: 1 addition & 1 deletion Kernel/Modules/AdminDynamicFieldSet.pm
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ sub _Add {
if ( IsHashRefWithData($FieldConfig) ) {

# copy standard stuff
for my $Key (qw(ObjectType FieldType FieldOrder Label Name ValidID)) {
for my $Key (qw(ObjectType FieldType Label Name ValidID)) {
$GetParam{$Key} = $FieldConfig->{$Key};
}

Expand Down
2 changes: 1 addition & 1 deletion Kernel/Modules/AdminDynamicFieldText.pm
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ sub _Add {
if ( IsHashRefWithData($FieldConfig) ) {

# copy standard stuff
for my $Key (qw(ObjectType FieldType FieldOrder Label Name ValidID)) {
for my $Key (qw(ObjectType FieldType Label Name ValidID)) {
$GetParam{$Key} = $FieldConfig->{$Key};
}

Expand Down
2 changes: 1 addition & 1 deletion Kernel/Modules/AdminDynamicFieldTitle.pm
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ sub _Add {
if ( IsHashRefWithData($FieldConfig) ) {

# copy standard stuff
for my $Key (qw(ObjectType FieldType FieldOrder Label Name ValidID)) {
for my $Key (qw(ObjectType FieldType Label Name ValidID)) {
$GetParam{$Key} = $FieldConfig->{$Key};
}

Expand Down
2 changes: 1 addition & 1 deletion Kernel/Modules/AdminDynamicFieldWebService.pm
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ sub _Add {
if ( IsHashRefWithData($FieldConfig) ) {

# copy standard stuff
for my $Key (qw(ObjectType FieldType FieldOrder Label Name ValidID)) {
for my $Key (qw(ObjectType FieldType Label Name ValidID)) {
$GetParam{$Key} = $FieldConfig->{$Key};
}

Expand Down
5 changes: 4 additions & 1 deletion var/httpd/htdocs/js/Core.Agent.Admin.DynamicField.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,14 @@ Core.Agent.Admin.DynamicField = (function (TargetNS) {
TargetNS.DynamicFieldClone = function() {
$('.DynamicFieldClone').on('click', function (Event) {

// get field order
var FieldOrder = parseInt($('#MaxFieldOrder').val(), 10) + 1;

// don't interfere with MasterAction
Event.stopPropagation();
Event.preventDefault();

window.location = $(this).attr('href');
window.location = $(this).attr('href') + ';FieldOrder=' + FieldOrder;

return false;
});
Expand Down

0 comments on commit 88e42ff

Please sign in to comment.