Skip to content

Commit

Permalink
Exclude assets that are already linked
Browse files Browse the repository at this point in the history
  • Loading branch information
bkembreeBPS committed Nov 13, 2023
1 parent ad29a60 commit bc63b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/html/Ticket/Elements/ShowAssets
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ if ($ShowRelatedTickets) {
<label><&|/l&>Add an asset to this ticket:</&></label>
<div class="form-row">
<div class="form-group mx-sm-3 mb-2">
<input data-autocomplete="Assets" class="form-control mb-2" size="10" name="<% $Ticket->id %>-RefersTo" placeholder="<&|/l&>Asset #</&>" type="text">
<input data-autocomplete="Assets" class="form-control mb-2" size="10" name="<% $Ticket->id %>-RefersTo" placeholder="<&|/l&>Asset #</&>" data-autocomplete-exclude="<% join(',', @linked_assets) |n %>" type="text">
</div>
<button type="submit" name="AddAsset" value="Add" class="button btn btn-primary form-control mb-2">Add</button>
</div>
Expand Down

0 comments on commit bc63b8d

Please sign in to comment.