Is it possible to change the button within the sticky to read one thing if the ticket is unassigned and another if its got someone assigned to it?
There's a couple of buttons in the sticky bar, so which one are you referring to?You'll need to modify the core files to achive this an example that does this already can be found here: https://github.com/osTicket/osTicket/blob/develop/include/staff/ticket-view.inc.php#L105
Apoligies, in the sticky there is a button that says Reassign, I want it to say 'Claim' if the ticket is unassigned.
But it already says claim on the sticky bar?
That may be my problem then, see I've changed my sticky bar so the buttons look like thisWhere it says Reassign I want that to read differently depenising on if the ticket is assigned to someone.
Picture
Not sure why its not letting me attach an image but here http://imgur.com/a/OGaRA
Can you post the code you have include/staff/ticket-view.inc.phpbetween line 99 (should be comment // Assign) and the following 20-30 lines.
// Assign if ($ticket->isOpen() && $role->hasPerm(TicketModel:)) {?> <span class="action-button pull-right" data-dropdown="#action-dropdown-assign" data-placement="bottom" data-toggle="" title=" <?php echo $ticket->isAssigned() ? __('Assign') : __('Reassign'); ?>" > <i class="icon-caret-down pull-right"></i> <a class="ticket-action" id="ticket-assign" data-redirect="tickets.php?id=<?php echo $ticket->getId(); ?>" href="#tickets/<?php echo $ticket->getId(); ?>/assign"><i class="icon-user"> </i>Reassign</a> </span> <div id="action-dropdown-assign" class="action-dropdown anchor-right"> <ul> <?php // Agent can claim team assigned ticket if (!$ticket->getStaff() && (!$dept->assignMembersOnly() || $dept->isMember($thisstaff)) ) { ?> <li><a class="no-pjax ticket-action" data-redirect="tickets.php?id=<?php echo $ticket->getId(); ?>" href="#tickets/<?php echo $ticket->getId(); ?>/claim"><i class="icon-chevron-sign-down"></i> <?php echo __('Claim'); ?></a> <?php } ?> <li><a class="no-pjax ticket-action" data-redirect="tickets.php?id=<?php echo $ticket->getId(); ?>" href="#tickets/<?php echo $ticket->getId(); ?>/assign/agents"><i class="icon-user"></i> <?php echo __('Agent'); ?></a> <li><a class="no-pjax ticket-action" data-redirect="tickets.php?id=<?php echo $ticket->getId(); ?>" href="#tickets/<?php echo $ticket->getId(); ?>/assign/teams"><i class="icon-group"></i> <?php echo __('Team'); ?></a> </ul> </div> <?php } ?> <div id="action-dropdown-more" class="action-dropdown anchor-right"> <ul> <?php
If you look on this line, https://github.com/osTicket/osTicket/blob/develop/include/staff/ticket-view.inc.php#L110You've added Reassign, replace that with this <?php echo $ticket->isAssigned() ? __('Assign') : __('Claim'); ?>
Thats worked, thank you :)