effective_events 3.3.6 → 3.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5858754efeedb4638f0c9716e8db9a2314f2abf1bd2a4634a22b8504e738378
4
- data.tar.gz: c48f446405a02f269a91774886f7e6e940d1cc78aad19297ba0b9a3c4605fb9e
3
+ metadata.gz: e13e874c33191f12c693cce55d51061152ad60efe1eedcc8e313c9d0380f55d3
4
+ data.tar.gz: 850581f87e005d3a017ce6696fdaba843567f63644bd8ab8876154294bd26600
5
5
  SHA512:
6
- metadata.gz: 7f84592d4b7fe6c1e6d859fd78d39b93e99cab7a28d89066a34d76ebe44328c24cf3bb1e652d6efd6adce2149182ca279f44d975895be1fa37b5f1c314843d25
7
- data.tar.gz: 986ccd698de2eccda992a2a5a3b1ccc2303ff902168d4a8b5e6ecb42e0c38f7e6c35aaedfe5cd76d03e028558294ecaff2f1a5b7dd0ae8b8f60288a02bc544d4
6
+ metadata.gz: 78115969a61f17242c823beda010f9cde6590d6db97387104dea1a35049473e3d0fe083824e56d43a1cf13e23a2a68935acdb4cf5eba0eede6b1f38f69bbe8a8
7
+ data.tar.gz: fc06efb68c5d4d824cd2cf90ca8b2ea608487b0d98b43a0c9a6181ff04cd3b6c53286bc398b01ec26b96aac03e613383458aa821bd441a9dc1ead8abe3614d13
@@ -23,7 +23,7 @@ module Admin
23
23
  col :event
24
24
 
25
25
  col :owner, as: :string, sql_column: 'owners.last_name' do |er|
26
- link_to(er.owner, "/admin/users/#{er.owner_id}/edit")
26
+ link_to(er.owner, "/admin/users/#{er.owner_id}/edit") if er.owner.present?
27
27
  end.search do |collection, term|
28
28
  users = Effective::Resource.new(current_user).search_any(term, columns: [:first_name, :last_name, :email])
29
29
  collection.where(owner_id: users, owner_type: current_user.class.name)
@@ -79,7 +79,7 @@ module Admin
79
79
 
80
80
  if defined?(EffectiveMemberships) && EffectiveEvents.organization_enabled?
81
81
  col :organization, as: :string, sql_column: 'organizations.title', visible: true do |er|
82
- link_to(er.organization, effective_memberships.edit_admin_organization_path(er.organization))
82
+ link_to(er.organization, effective_memberships.edit_admin_organization_path(er.organization)) if er.organization.present?
83
83
  end.search do |collection, term|
84
84
  organizations = Effective::Resource.new(EffectiveMemberships.Organization).search_any(term, columns: [:title])
85
85
  collection.where(organization_id: organizations, organization_type: EffectiveMemberships.Organization.name)
@@ -1,3 +1,3 @@
1
1
  module EffectiveEvents
2
- VERSION = '3.3.6'.freeze
2
+ VERSION = '3.3.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_events
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.6
4
+ version: 3.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect