Skip to content

Commit

Permalink
Issue #2842: Some Lens fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven committed Jan 24, 2024
1 parent 3b3a6c1 commit bfc23ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Kernel/System/DynamicField/Driver/Lens.pm
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ sub HasBehavior {
}

# return success if the dynamic field has the expected behavior
return SUPER::HasBehavior( Behavior => $Param{Behavior} );
return $Self->SUPER::HasBehavior( Behavior => $Param{Behavior} );
}

sub PossibleValuesGet {
Expand Down Expand Up @@ -573,7 +573,7 @@ sub GetFieldState {
}

# or if we have the field reappear
elsif ( $Param{CachedVisibility} && $Param{CachedVisibility}{ 'DynamicField_' . $DynamicFieldConfig->{Name} } == 0 ) {
elsif ( $Param{CachedVisibility} && !$Param{CachedVisibility}{ 'DynamicField_' . $DynamicFieldConfig->{Name} } ) {
$NeedsReset = 1;
}

Expand Down
2 changes: 1 addition & 1 deletion Kernel/System/Ticket/FieldRestrictions.pm
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ sub GetFieldStates {
my %Content = $Param{DynamicFieldBackendObject}->GetFieldState(
%Param,
Visibility => \%Visibility,
CachedVisibility => $CachedVisibility // {},
CachedVisibility => $CachedVisibility,
DynamicFieldConfig => $DynamicFieldConfig,
);

Expand Down

0 comments on commit bfc23ad

Please sign in to comment.