Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

Hide Queue #40

Open
ChuckNorrison opened this issue Apr 24, 2015 · 5 comments
Open

Hide Queue #40

ChuckNorrison opened this issue Apr 24, 2015 · 5 comments

Comments

@ChuckNorrison
Copy link

Hi, i stuck on hiding a specific Queue. Some ideas?

The getTicket Function has some vars:

    $vars = array(
        'TicketID' => array( $id, XSD_STRING ),
        'CustomerUserLogin' => array( $this->_userID, XSD_STRING ),
        'CustomerUserID' => array( $this->_userID, XSD_STRING ),
        'Permission' => array( 'ro', XSD_STRING )
        );

I tried to set a group with no "read only" permissions to the queue i want to hide, but it dont work. I think its cause of the rpc_user i cant configure.

@ChuckNorrison
Copy link
Author

Its easy :)

here is a list of possible filteroptions: http://otrs.perl-services.de/docs/otrs/master/kernel_system_ticketsearch.html

we have to change the vars in ticket.php and in tickets.php. In my case i changed the getTickets function in models\tickets.php like this:

    $vars = array(
        'Result' => array( 'ARRAY', XSD_STRING ),
        'CustomerUserID' => array( $this->_userID, XSD_STRING ),
        'Permission' => array( 'ro', XSD_STRING ),
        'Queues' =>  array( ['my queue 1', 'my queue 2'], XSD_STRING )
        );

@ChuckNorrison
Copy link
Author

Iam working on Backend Configuration for this setting. I stuck to get it as soap var in the rpchelper.php. I think my Problem is the XSD_STRING Format to build the array...

@ChuckNorrison
Copy link
Author

Iam done

ChuckNorrison@e3c3e1a

@lbourne43
Copy link

Hi Chuck

Many thanks for the update.

Lewis

@ChuckNorrison
Copy link
Author

I used Short Arrays... so the Extension was only working with PHP 5.4 or newer.

with ChuckNorrison@4cce63a it works with every PHP 5 Version

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants