projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
avoid cloning TimeWorked and related fields on linked tickets, #20543
[freeside.git]
/
rt
/
share
/
html
/
Ticket
/
Create.html
diff --git
a/rt/share/html/Ticket/Create.html
b/rt/share/html/Ticket/Create.html
index
f29dfbb
..
8c6a58a
100755
(executable)
--- a/
rt/share/html/Ticket/Create.html
+++ b/
rt/share/html/Ticket/Create.html
@@
-66,7
+66,6
@@
<div id="ticket-create-metadata">
<&| /Widgets/TitleBox, title => loc("Basics"), class=>'ticket-info-basics' &>
<div id="ticket-create-metadata">
<&| /Widgets/TitleBox, title => loc("Basics"), class=>'ticket-info-basics' &>
- <input type="hidden" class="hidden" name="Queue" value="<% $QueueObj->Id %>" />
<table width="100%" border="0">
<& /Ticket/Elements/EditBasics,
InTable => 1,
<table width="100%" border="0">
<& /Ticket/Elements/EditBasics,
InTable => 1,
@@
-294,8
+293,8
@@
if ($CloneTicket) {
};
$clone->{$_} = $CloneTicketObj->$_()
};
$clone->{$_} = $CloneTicketObj->$_()
- for qw/Owner Subject FinalPriority
TimeEstimated TimeWorked
- Status TimeLeft/;
+ for qw/Owner Subject FinalPriority
Status/;
+ # not TimeWorked, TimeEstimated, or TimeLeft
$clone->{$_} = $CloneTicketObj->$_->AsString
for grep { $CloneTicketObj->$_->Unix }
$clone->{$_} = $CloneTicketObj->$_->AsString
for grep { $CloneTicketObj->$_->Unix }
@@
-331,6
+330,7
@@
if ($CloneTicket) {
my $cfs = $CloneTicketObj->QueueObj->TicketCustomFields();
while ( my $cf = $cfs->Next ) {
my $cfs = $CloneTicketObj->QueueObj->TicketCustomFields();
while ( my $cf = $cfs->Next ) {
+ next if $cf->FirstAttribute('NoClone');
my $cf_id = $cf->id;
my $cf_values = $CloneTicketObj->CustomFieldValues( $cf->id );
my @cf_values;
my $cf_id = $cf->id;
my $cf_values = $CloneTicketObj->CustomFieldValues( $cf->id );
my @cf_values;