effective_cpd 1.4.5 → 1.4.6

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: ea1c3574d959eac96d4ea26c8c0c4a25560c81d08bc5e54a85c238adb51f70f0
4
- data.tar.gz: af871c4f6ec38aa0e1c1090c1877e857f65db572b087e422ecd2029a338fc0f2
3
+ metadata.gz: 41c07110b8b5814d4ff968ffb44dc82d102ad50234907afb644ea887222a1992
4
+ data.tar.gz: 61546891dc6371599ade1e82e7ff75badab344d4eda831b96244131cf6347f88
5
5
  SHA512:
6
- metadata.gz: 405c0b8e3c5f5b21ac04f97bf8db864ed7a8a1994b25027aa41d535e1f7ce84585e38ec7d1fd1eeb77d58d51e080f96ee62aa57e0cca472c055978a3dc936992
7
- data.tar.gz: 113e27bb06f1cc3a0ae4c664e0af1255de13f52e55a176912d25b064931ba7c6f41f0636c8ff5cdcdaab2eee27e15f260b611a2b1960708e0ad021035da63dc6
6
+ metadata.gz: c21fc17a84dab2f37c2c5429109e2a723525f7624236b60210360132c854365038e49a78b9fa57fb2737f5fa2e3b6bb9adc03d50c1fa1e7635157d23ae1956c1
7
+ data.tar.gz: 9da9b7474edd7e464f369b9e2c03517dc25f9b8bdeb5b6c986f018ba3387b7fc3f10d713828db62b0774270b390448c9fa5690689e5e40b48a0731e61af6e9c0
@@ -103,7 +103,9 @@ module EffectiveCpdUser
103
103
 
104
104
  # For the form
105
105
  def build_cpd_targets
106
- Effective::CpdCycle.sorted.all.each { |cpd_cycle| build_cpd_target(cpd_cycle: cpd_cycle) }
106
+ Effective::CpdCycle.sorted.all.each do |cpd_cycle|
107
+ cpd_target(cpd_cycle: cpd_cycle) || cpd_targets.new(cpd_cycle: cpd_cycle)
108
+ end
107
109
  cpd_targets.sort_by(&:cpd_cycle_id).reverse
108
110
  end
109
111
 
@@ -18,7 +18,7 @@
18
18
  - collection = Effective::CpdTarget::REQUIRED_TO_SUBMIT
19
19
  - cpd_cycle = ctf.object.cpd_cycle
20
20
  - target = f.object.cpd_target_score(cpd_cycle: cpd_cycle)
21
- - target_placeholder = f.object.default_cpd_target_score(cpd_cycle: cpd_cycle)
21
+ - target_placeholder = f.object.default_cpd_target_score(cpd_cycle: cpd_cycle) || '-'
22
22
  - required_to_submit = f.object.cpd_target_score_required_to_submit?(cpd_cycle: cpd_cycle)
23
23
  - required_to_submit_placeholder = collection.find { |label, value| value == required_to_submit }.first
24
24
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveCpd
2
- VERSION = '1.4.5'
2
+ VERSION = '1.4.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_cpd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.5
4
+ version: 1.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect