Hide star icon in ticket dashboard/overview

Moderator: crythias

Post Reply
gecelann
Znuny expert
Posts: 164
Joined: 12 Feb 2016, 08:05
Znuny Version: 5.0.0
Real Name: ann
Company: rghdinc

Hide star icon in ticket dashboard/overview

Post by gecelann »

Hi!

Good day!
I would like to know what are the affected files when we will hide the star of the ticket?
Our client doesn't want to see the stars beside the ticket's details?

Please see the screenshot below. How to hide this section? :D :D :D
You do not have the required permissions to view the files attached to this post.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Hide star icon in ticket dashboard/overview

Post by reneeb »

Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
gecelann
Znuny expert
Posts: 164
Joined: 12 Feb 2016, 08:05
Znuny Version: 5.0.0
Real Name: ann
Company: rghdinc

Re: Hide star icon in ticket dashboard/overview

Post by gecelann »

Hi Reneeb,

Already add code next if $Item eq 'New Article';
But nothing change except for the queue view please check the screenshot for the result

ttps://github.com/OTRS/otrs/blob/32e2ee9e20388db9ae10a1c7414b274272b7c936/Kernel/Output/HTML/TicketOverview/Small.pm#L634

Code: Select all

 # meta items
        my @TicketMetaItems = $LayoutObject->TicketMetaItemsCount();
        for my $Item (@TicketMetaItems) {
        
            #HIDE STAR
            next if $Item eq 'New Article';
            
            $LayoutObject->Block(
                Name => 'GeneralOverviewHeader',
            );
https://github.com/OTRS/otrs/blob/32e2e ... l.pm#L1427

Code: Select all

 # show ticket flags
        my @TicketMetaItems = $LayoutObject->TicketMetaItems(
            Ticket => \%Article,
        );
        for my $Item (@TicketMetaItems) {
                #HIDE STAR
            next if $Item eq 'New Article';
            
            $LayoutObject->Block(
                Name => 'GeneralOverviewRow',
            );
See result:
You do not have the required permissions to view the files attached to this post.
Post Reply