From 338c178c30511479b951b9b438a8bba8d60e44b7 Mon Sep 17 00:00:00 2001 From: PaulAndrews Date: Tue, 15 Apr 2014 03:45:44 +0100 Subject: [PATCH] Fix error when displaying Milestone details Code would result in error when canEdit=False, as getMilestoneID was being referenced instead of getMilestone. Also, a lang() construct was used around the Milestone's name. As language strings can't be set by the user (and the Milestone name when elsewhere isn't treated like this) I replaced this with clean(). --- application/plugins/tickets/views/edit_ticket.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/plugins/tickets/views/edit_ticket.php b/application/plugins/tickets/views/edit_ticket.php index 42df77b..48947aa 100644 --- a/application/plugins/tickets/views/edit_ticket.php +++ b/application/plugins/tickets/views/edit_ticket.php @@ -98,7 +98,7 @@ getProject(), array_var($ticket_data, 'milestone_id'), array('id' => 'ticketFormMilestone')) ?> getMilestoneId()) { ?> - getMilestoneId()->getObjectName()); ?> + getMilestone()->getObjectName()); ?> @@ -173,4 +173,4 @@

- \ No newline at end of file +