SOLUTION:Tested and verified as working in TTX version 2.24
Disclaimer:
I have no idea what other new issues might be caused by switching groups in this manner.In
TTXTickEd.pm...
Find the line in
Green and add the
Blue...
$t->{subject} = $val if $val ne undef;
#### Edit the Ticket
$val = $query->param('grp');
$t->{grp} = $val if $val ne undef;
#### End Edit the Ticket
$data->{TICKET_key} = $t->{key};
#### Construct the Selector for the Ticket Edit Pop-up
$data->{TICKET_GROUP_ED} .= "<select name='grp'>" ;
my @glist = grep(/^group\d+$/, $cfg->vars());
my $sepon;
foreach my $gid (sort {uc(TTXCommon::decodeit($cfg->get($a))) cmp uc(TTXCommon::decodeit($cfg->get($b)))} @glist) {
next if $cfg->get($gid) eq '' || $cfg->get($gid) eq undef; # skip deleted groups
my $mbrlist = $cfg->get("mbr-$gid");
next if $mbrlist eq undef; # skip empty groups
if (!$sepon) {
$data->{TICKET_GROUP_ED} .= "<option value=\"\">---[%Groups%]---</option>\n";
$sepon = 1;
}
$data->{TICKET_GROUP_ED} .= "<option value=\"$gid\"";
if ($gid eq $t->{grp}){
$data->{TICKET_GROUP_ED} .= " selected";
}
$data->{TICKET_GROUP_ED} .=">".TTXCommon::decodeit($cfg->get($gid))."</option>\n";
}
$data->{TICKET_GROUP_ED} .= "</select>" ;
#### End Construct the Selector
In
ticketed.html template...
Find the part in
Green and add the
Blue...
<tr>
<td align=right><b>[%Subject%]</b></td>
<td align=left><input type=text name=subject size=30 value="(%TICKET_subject%)"></td>
</tr>
<tr>
<td align=right><b>[%Group%]</b></td>
<td align=left>(%TICKET_GROUP_ED%)</td>
</tr>