ish_manager 0.1.8.436 → 0.1.8.438

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: 8fe0af2fe32744d65c81b4c43ece7e78dc43ed9f489d06b50d997a0eeae87ab2
4
- data.tar.gz: b4b65f1f3e5f3eee1165abfed84b578ea1b1a160afa1dab15e7c1b421ecae2b6
3
+ metadata.gz: 8b7fac3747efb8d55cd54cc76227c45d7ec650f0b64751826a0acfabccd0aafd
4
+ data.tar.gz: d39b81c7a0b4b2f08acb28601b3d140eab8a74da6a5c9adc8390c7cc481b5d54
5
5
  SHA512:
6
- metadata.gz: 7469ea57788dff6abfb772046dbd54c88cbddd7f8f57b77fb5d16c4848fb13e47fbf6ba5b2f0709f48bf2061e9800a581e24a41e61751e98a4d689787316a6fa
7
- data.tar.gz: 39beb58297123e266f857c567e2103dcd75662b8c2ab4f58ad1521211a5bd88113ce2f0eca1d1e1be65833975d02e2488348dc53cfe3d4f755460aeb3ee805fe
6
+ metadata.gz: f0c5286339f8722de386ad28c2a3718d6412076b67ce90353dd827946d0b68ebba54071ea05a42e8b807a9779bcd3d60be87b39e1bf154314077f5d51ddbdc89
7
+ data.tar.gz: 984702f49949054f14c76daf7738da6bf83eaf3db180291a86f7c2b2b298d763c09f388773032cffe6190a5f5f52ec3ba8ce8d92573c53376f16768b598f4f9f
@@ -10,6 +10,13 @@ class IshManager::ReportsController < IshManager::ApplicationController
10
10
  @report.user_profile = @current_profile # @TODO: this should not be hard-coded
11
11
  authorize! :create, @report
12
12
 
13
+ old_shared_profile_ids = @report.shared_profiles.map(&:id)
14
+ if params[:report][:shared_profiles].present?
15
+ params[:report][:shared_profiles].delete('')
16
+ end
17
+ params[:report][:shared_profile_ids] = params[:report][:shared_profiles]
18
+ params[:report].delete :shared_profiles
19
+
13
20
  flag = @report.save
14
21
  respond_to do |format|
15
22
  if flag
@@ -26,7 +26,7 @@
26
26
  = link_to n.report.name, report_path(n.report.slug)
27
27
  = link_to "[~]", edit_report_path(n.report)
28
28
  .meta
29
- on #{pretty_date n.report.created_at} by #{n.report.username}
29
+ on #{pretty_date n.report.created_at} by #{n.report.user_profile&.name || '<anonymous>'}
30
30
  - unless n.report.photo.blank?
31
31
  .thumb= link_to image_tag(n.report.photo.photo.url(:thumb), :alt => ''), report_path( n.report.slug )
32
32
  .subhead= n.report.subhead
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.436
4
+ version: 0.1.8.438
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-17 00:00:00.000000000 Z
11
+ date: 2023-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails