Skip to content

Commit

Permalink
fix(ticket): editing subject disappearing
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Feb 19, 2019
1 parent 41d6780 commit 53e62d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/public/js/angularjs/controllers/singleTicket.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ define([
$scope.showEditWindow = function (type, showSubject, commentNoteId) {
var $editWindow = $('#edit-ticket-window')
if ($editWindow.length < 1) return false
var text = ''
var ticketId = $('#__ticketId').text()
var text = ''
$editWindow.attr('data-ticket-id', ticketId)

if (type.toLowerCase() === 'issue') {
Expand Down Expand Up @@ -193,6 +193,7 @@ define([
$subjectWrap.attr('data-active', false)
} else {
var subjectText = ''
$subjectWrap.show()
if (type.toLowerCase() === 'issue') {
subjectText = $('.initial-issue > .issue-text > .subject-text').text()
}
Expand Down

0 comments on commit 53e62d7

Please sign in to comment.