Skip to content

Commit

Permalink
Issue #544: Add a hidden input field for the CustomerID to AgentTicke…
Browse files Browse the repository at this point in the history
…tPhone and -Email in case CustomerID is set to readonly.
  • Loading branch information
Sven committed Oct 14, 2020
1 parent 12fae64 commit 0865ed1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Kernel/Output/HTML/Templates/Standard/AgentTicketEmail.tt
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,9 @@
</div>
<div class="Clear"></div>

[% IF !Config("Ticket::Frontend::AgentTicketEmail::CustomerIDReadOnly") %]
[% IF Config("Ticket::Frontend::AgentTicketEmail::CustomerIDReadOnly") %]
<input type="hidden" name="CustomerID" id="CustomerID" value="[% Data.CustomerID | html %]" readonly="readonly"/>
[% ELSE %]
[% INCLUDE "CustomerCompany/TicketCustomerIDSelection.tt" Required = 0 Readonly = Config("Ticket::Frontend::AgentTicketEmail::CustomerIDReadOnly") %]
[% END %]

Expand Down
4 changes: 3 additions & 1 deletion Kernel/Output/HTML/Templates/Standard/AgentTicketPhone.tt
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@
</div>
<div class="Clear"></div>

[% IF !Config("Ticket::Frontend::AgentTicketEmail::CustomerIDReadOnly") %]
[% IF Config("Ticket::Frontend::AgentTicketPhone::CustomerIDReadOnly") %]
<input type="hidden" name="CustomerID" id="CustomerID" value="[% Data.CustomerID | html %]" readonly="readonly"/>
[% ELSE %]
[% INCLUDE "CustomerCompany/TicketCustomerIDSelection.tt" Required = 0 Readonly = Config("Ticket::Frontend::AgentTicketPhone::CustomerIDReadOnly") %]
[% END %]

Expand Down

0 comments on commit 0865ed1

Please sign in to comment.