Also show "pending close" ticket in My assigned Tickets.
This commit is contained in:
parent
d3eba504a3
commit
4a5fa073f8
2 changed files with 34 additions and 1 deletions
33
db/migrate/20150223000001_update_overview2.rb
Normal file
33
db/migrate/20150223000001_update_overview2.rb
Normal file
|
@ -0,0 +1,33 @@
|
|||
class UpdateOverview2 < ActiveRecord::Migration
|
||||
def up
|
||||
|
||||
overview_role = Role.where( :name => 'Agent' ).first
|
||||
if overview_role
|
||||
UserInfo.current_user_id = 1
|
||||
Overview.create_or_update(
|
||||
:name => 'My assigned Tickets',
|
||||
:link => 'my_assigned',
|
||||
:prio => 1000,
|
||||
:role_id => overview_role.id,
|
||||
:condition => {
|
||||
'tickets.state_id' => [ 1,2,3,7 ],
|
||||
'tickets.owner_id' => 'current_user.id',
|
||||
},
|
||||
:order => {
|
||||
:by => 'created_at',
|
||||
:direction => 'ASC',
|
||||
},
|
||||
:view => {
|
||||
:d => [ 'title', 'customer', 'group', 'created_at' ],
|
||||
:s => [ 'title', 'customer', 'group', 'created_at' ],
|
||||
:m => [ 'number', 'title', 'customer', 'group', 'created_at' ],
|
||||
:view_mode_default => 's',
|
||||
},
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
|
||||
end
|
|
@ -1411,7 +1411,7 @@ Overview.create_if_not_exists(
|
|||
:prio => 1000,
|
||||
:role_id => overview_role.id,
|
||||
:condition => {
|
||||
'tickets.state_id' => [ 1,2,3 ],
|
||||
'tickets.state_id' => [ 1,2,3,7 ],
|
||||
'tickets.owner_id' => 'current_user.id',
|
||||
},
|
||||
:order => {
|
||||
|
|
Loading…
Reference in a new issue