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"]')
|
bulkAll = @$('.table-overview').find('[name="bulk_all"]')
|
||||||
checkedCount = @$('.table-overview').find('input[name="bulk"]:checked').length
|
checkedCount = @$('.table-overview').find('input[name="bulk"]:checked').length
|
||||||
checkboxCount = @$('.table-overview').find('input[name="bulk"]').length
|
checkboxCount = @$('.table-overview').find('input[name="bulk"]').length
|
||||||
|
|
||||||
if checkedCount is 0
|
if checkedCount is 0
|
||||||
bulkAll.prop('indeterminate', false)
|
bulkAll.prop('indeterminate', false)
|
||||||
bulkAll.prop('checked', false)
|
bulkAll.prop('checked', false)
|
||||||
|
@ -1367,6 +1366,11 @@ class BulkForm extends App.Controller
|
||||||
return
|
return
|
||||||
|
|
||||||
ticket.load(ticket_update)
|
ticket.load(ticket_update)
|
||||||
|
|
||||||
|
# if title is empty - ticket can't processed, set ?
|
||||||
|
if _.isEmpty(ticket.title)
|
||||||
|
ticket.title = '-'
|
||||||
|
|
||||||
ticket.save(
|
ticket.save(
|
||||||
done: (r) =>
|
done: (r) =>
|
||||||
@bulk_count_index++
|
@bulk_count_index++
|
||||||
|
|
|
@ -691,11 +691,9 @@ class App.TicketZoom extends App.Controller
|
||||||
if !ticket['owner_id']
|
if !ticket['owner_id']
|
||||||
ticket['owner_id'] = 1
|
ticket['owner_id'] = 1
|
||||||
|
|
||||||
# check if title exists
|
# if title is empty - ticket can't processed, set ?
|
||||||
if !ticket['title']
|
if _.isEmpty(ticket.title)
|
||||||
alert( App.i18n.translateContent('Title needed') )
|
ticket.title = '-'
|
||||||
@formEnable(e)
|
|
||||||
return
|
|
||||||
|
|
||||||
# stop autosave
|
# stop autosave
|
||||||
@autosaveStop()
|
@autosaveStop()
|
||||||
|
|
Loading…
Reference in a new issue