phcpresspro 3.1.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/phcpresspro/blog/posts_controller.rb +1 -1
- data/app/controllers/phcpresspro/news/posts_controller.rb +1 -1
- data/app/views/phcpresspro/blog/posts/_form.html.erb +1 -1
- data/app/views/phcpresspro/news/posts/_form.html.erb +1 -1
- data/db/migrate/20160716182409_create_phcpresspro_news_posts.rb +1 -1
- data/db/migrate/20160716182518_create_phcpresspro_blog_posts.rb +1 -1
- data/lib/phcpresspro/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: 24f55bfe8e46c71ec791e56efbad2527db87008c
|
4
|
+
data.tar.gz: 6cc9de76b6ea12b9a7a5562d8fdd1fd76a749144
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a3b57b999ae8f74f4564345b50f210cd843ca380f47901c45e5ac112b6a312bbc084b1c60a559435f312641abc443a83b779e7b2a10f6eda0aeb4b029ca5488
|
7
|
+
data.tar.gz: 1a6d5e5cd2bc411a6a1e7541a9764ab0d10dd576999c076af46f9df8e4b2a832b52263f2df46f232618e69ffe83ca6fbd9d3568f5760e2e4213e787d0a947d97
|
@@ -58,7 +58,7 @@ module Phcpresspro
|
|
58
58
|
|
59
59
|
# Whitelist on what can be posted
|
60
60
|
def blog_post_params
|
61
|
-
params.require(:blog_post).permit(:blogpsttitle, :blogpsttext, :blogpstexcerpts, :pststatus, :pstimage, :remove_pstimage, :
|
61
|
+
params.require(:blog_post).permit(:blogpsttitle, :blogpsttext, :blogpstexcerpts, :pststatus, :pstcategory, :pstimage, :remove_pstimage, :category_id, :user_id, :membership_id, :oganization_id)
|
62
62
|
end
|
63
63
|
|
64
64
|
end
|
@@ -58,7 +58,7 @@ module Phcpresspro
|
|
58
58
|
|
59
59
|
# Whitelist
|
60
60
|
def news_post_params
|
61
|
-
params.require(:news_post).permit(:newspsttitle, :newspsttext, :newspstexcerpts, :pststatus, :pstimage, :remove_pstimage, :
|
61
|
+
params.require(:news_post).permit(:newspsttitle, :newspsttext, :newspstexcerpts, :pststatus, :pstcategory, :pstimage, :remove_pstimage, :category_id, :user_id, :membership_id, :oganization_id)
|
62
62
|
end
|
63
63
|
|
64
64
|
end
|
@@ -17,7 +17,7 @@
|
|
17
17
|
</div>
|
18
18
|
<div class="form-group">
|
19
19
|
<%= f.label :pstcategory, "Post Category" %>
|
20
|
-
<%= collection_select(:pstcategory, :
|
20
|
+
<%= collection_select(:pstcategory, :category_id, Phcpresspro::Modules::Category.order('catname'), :id, :catname, {}, {class: "form-control form-control-sm"}) %>
|
21
21
|
</div>
|
22
22
|
<div class="actions">
|
23
23
|
<%= f.submit "Publish Blog Article", class: "btn btn-primary btn-sm" %>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
</div>
|
18
18
|
<div class="form-group">
|
19
19
|
<%= f.label :pstcategory, "Post Category" %>
|
20
|
-
<%= collection_select(:pstcategory, :
|
20
|
+
<%= collection_select(:pstcategory, :category_id, Phcpresspro::Modules::Category.order('catname'), :id, :catname, {}, {class: "form-control form-control-sm"}) %>
|
21
21
|
</div>
|
22
22
|
<div class="actions">
|
23
23
|
<%= f.submit "Publish News Article", class: "btn btn-primary btn-sm" %>
|
data/lib/phcpresspro/version.rb
CHANGED