Fixed issue #719 - Ticket without Subject is blocked - can't do anything with it ("Title needed”).
This commit is contained in:
parent
bc60edddf5
commit
c1d663e4e4
2 changed files with 8 additions and 6 deletions
|
@ -1163,7 +1163,6 @@ class Table extends App.Controller
|
|||
bulkAll = @$('.table-overview').find('[name="bulk_all"]')
|
||||
checkedCount = @$('.table-overview').find('input[name="bulk"]:checked').length
|
||||
checkboxCount = @$('.table-overview').find('input[name="bulk"]').length
|
||||
|
||||
if checkedCount is 0
|
||||
bulkAll.prop('indeterminate', false)
|
||||
bulkAll.prop('checked', false)
|
||||
|
@ -1367,6 +1366,11 @@ class BulkForm extends App.Controller
|
|||
return
|
||||
|
||||
ticket.load(ticket_update)
|
||||
|
||||
# if title is empty - ticket can't processed, set ?
|
||||
if _.isEmpty(ticket.title)
|
||||
ticket.title = '-'
|
||||
|
||||
ticket.save(
|
||||
done: (r) =>
|
||||
@bulk_count_index++
|
||||
|
|
|
@ -691,11 +691,9 @@ class App.TicketZoom extends App.Controller
|
|||
if !ticket['owner_id']
|
||||
ticket['owner_id'] = 1
|
||||
|
||||
# check if title exists
|
||||
if !ticket['title']
|
||||
alert( App.i18n.translateContent('Title needed') )
|
||||
@formEnable(e)
|
||||
return
|
||||
# if title is empty - ticket can't processed, set ?
|
||||
if _.isEmpty(ticket.title)
|
||||
ticket.title = '-'
|
||||
|
||||
# stop autosave
|
||||
@autosaveStop()
|
||||
|
|
Loading…
Reference in a new issue