decidim-plans 0.18.1 → 0.18.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe8b383772e49e09ace49f90f5b0bb9e931704d399df1ecf521102e84486043f
4
- data.tar.gz: 64258a1add5488e8d69e3d28478500505e26ca360817c14dbd432973ab4ec8e8
3
+ metadata.gz: 4bebdf0735c70f55e119ac006209684d24a6b97bb3de359eb68825fc6aff9e0a
4
+ data.tar.gz: d01cdbb08904454be82e745b192f6413a0f4f061f441168f58c7d6b1e5fc34fd
5
5
  SHA512:
6
- metadata.gz: f09fa27fb446c4f0f9cc615cfd7f1033519a51337129a3295052b952d0ab11a42b9f2a59e89feb94442d5c9a52bd4f8f79990a338076e4e26d7edb03331daf6f
7
- data.tar.gz: c5f0d16abb8018020d4d9e6c45def7fba015a3e9f86dd971c88b796e58c8263dbc1b018ff54c298db6314a978bdccb2144f2e440139f1eabef0b72752fde66fd
6
+ metadata.gz: b2f6cccde0a14345e9856f78b768a920c676484257336aa91f6ca6d33e46fde90a3a7c6d8e7e70a0ceab9337570ca2e5c0f8317cacb15c4dee531372d1d8c5f7
7
+ data.tar.gz: 94816974bbccfd2b3c144bda91c33e71e9f0ddbd63cb6b4b35fc8e40b41bb4375a78f76bb75e0f4b61799a43115e2758e8a94407a8e2c03ec9d7ae9e3fe2f741
@@ -36,10 +36,9 @@ module Decidim
36
36
  )
37
37
  end
38
38
 
39
- return unless model.categorization
40
-
41
- self.category_id = model.categorization.decidim_category_id
42
- self.scope_id = model.decidim_scope_id
39
+ self.proposal_ids = model.linked_resources(:proposals, "included_proposals").pluck(:id)
40
+ self.scope_id = model.decidim_scope_id if model.scope
41
+ self.category_id = model.categorization.decidim_category_id if model.categorization
43
42
  end
44
43
 
45
44
  alias component current_component
@@ -57,10 +57,10 @@ module Decidim
57
57
  )
58
58
  end
59
59
 
60
+ self.proposal_ids = model.linked_resources(:proposals, "included_proposals").pluck(:id)
60
61
  self.user_group_id = model.user_groups.first&.id
61
- return unless model.categorization
62
-
63
- self.category_id = model.categorization.decidim_category_id
62
+ self.scope_id = model.decidim_scope_id if model.scope
63
+ self.category_id = model.categorization.decidim_category_id if model.categorization
64
64
  end
65
65
 
66
66
  def user_group
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Decidim
4
4
  module Plans
5
- VERSION = "0.18.1"
5
+ VERSION = "0.18.2"
6
6
  DECIDIM_VERSION = "~> 0.18.0"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-plans
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.1
4
+ version: 0.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antti Hukkanen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-29 00:00:00.000000000 Z
11
+ date: 2019-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-core