helpdesk 0.0.25 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/helpdesk/admin/tickets_controller.rb +1 -1
- data/app/models/helpdesk/comment.rb +1 -1
- data/app/models/helpdesk/faq.rb +2 -2
- data/app/models/helpdesk/ticket.rb +1 -1
- data/app/models/helpdesk/ticket_type.rb +2 -2
- data/app/views/helpdesk/admin/tickets/_form.html.haml +3 -3
- data/app/views/helpdesk/admin/tickets/show.html.haml +1 -1
- data/app/views/helpdesk/tickets/show.html.haml +1 -1
- data/config/locales/helpdesk.en.yml +1 -1
- data/lib/helpdesk/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70a9850e2834db223aeafc7470b0f47f1fceb886
|
4
|
+
data.tar.gz: 967935c0fca95a8f4466a66e95fb73b15c6c2a0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 296fce427ebe697647dcc4deec33d181df97b4b81153571f74474bbcfde1e12edf2ab3c4993ec56d0b5c633ed519b137609f116d85026a7fadc4f97279416f42
|
7
|
+
data.tar.gz: 344ac0b84642ad24a68d0d3914ec339e76ac1adda274c8bc53a3a7b055a3de731147a415c79044a5ca8a7af1dd16ff66dcc01daf76583bdbe5b4561f20464387
|
@@ -70,7 +70,7 @@ class Helpdesk::Admin::TicketsController < Helpdesk::Admin::BaseController
|
|
70
70
|
private
|
71
71
|
|
72
72
|
def ticket_params
|
73
|
-
params.require(:ticket).permit(:status
|
73
|
+
params.require(:ticket).permit(:status,:requester_id,:assignee_id,:ticket_type_id, :subject, :description,comments_attributes:[:author_id, :comment, :public])
|
74
74
|
end
|
75
75
|
|
76
76
|
end
|
data/app/models/helpdesk/faq.rb
CHANGED
@@ -5,7 +5,7 @@ module Helpdesk
|
|
5
5
|
|
6
6
|
default_scope order('position ASC').includes(:translations)
|
7
7
|
|
8
|
-
scope :active, where(
|
9
|
-
scope :inactive, where(
|
8
|
+
scope :active, -> {where(active: true)}
|
9
|
+
scope :inactive, -> {where(active: false)}
|
10
10
|
end
|
11
11
|
end
|
@@ -31,7 +31,7 @@ module Helpdesk
|
|
31
31
|
.includes(:ticket_type)
|
32
32
|
.order('id DESC')}
|
33
33
|
|
34
|
-
validates_presence_of :description,:
|
34
|
+
validates_presence_of :description,:requester,:ticket_type_id
|
35
35
|
|
36
36
|
accepts_nested_attributes_for :comments,:reject_if => lambda { |a| a[:comment].blank? }
|
37
37
|
|
@@ -7,10 +7,10 @@
|
|
7
7
|
- @ticket.errors.full_messages.each do |msg|
|
8
8
|
%li
|
9
9
|
= msg
|
10
|
-
= f.
|
10
|
+
= f.association :requester, :collection => (Helpdesk.user_class).all,:label_method=>Helpdesk.display_user_uniq_info.to_sym, input_html: { class: 'chosen-select' }
|
11
11
|
= f.input :subject
|
12
12
|
= f.input :status, :collection => tickets_statuses_for_select, include_blank: false
|
13
|
-
= f.input :
|
13
|
+
= f.input :assignee, :collection => helpdesk_admin_collection
|
14
14
|
= f.input :ticket_type_id, :collection => Helpdesk::TicketType.active,include_blank: false
|
15
15
|
- if @ticket.new_record?
|
16
16
|
= f.input :description,input_html:{rows:4}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
|
21
21
|
%div.form-actions
|
22
22
|
= f.button :submit, :class => 'btn btn-primary'
|
23
|
-
= submit_tag '
|
23
|
+
= submit_tag t('helpdesk..tickets.cancel'), :type => :reset, :class => "btn btn-danger"
|
@@ -33,4 +33,4 @@
|
|
33
33
|
= tickets_form.input :author_id, :as => :hidden, :input_html => { :value => helpdesk_user.id }
|
34
34
|
%div.form-actions
|
35
35
|
= f.button :submit, :class => 'btn btn-primary'
|
36
|
-
= submit_tag '
|
36
|
+
= submit_tag t('helpdesk..tickets.cancel'), :type => :reset, :class => "btn btn-danger"
|
@@ -35,4 +35,4 @@
|
|
35
35
|
= tickets_form.input :author_id, :as => :hidden, :input_html => { :value => helpdesk_user.id }
|
36
36
|
%div
|
37
37
|
= f.button :submit, :class => 'btn btn-primary'
|
38
|
-
= submit_tag '
|
38
|
+
= submit_tag t('helpdesk..tickets.cancel'), :type => :reset, :class => "btn btn-default"
|
data/lib/helpdesk/version.rb
CHANGED