ish_manager 0.1.8.437 → 0.1.8.438
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/ish_manager/reports_controller.rb +7 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b7fac3747efb8d55cd54cc76227c45d7ec650f0b64751826a0acfabccd0aafd
|
4
|
+
data.tar.gz: d39b81c7a0b4b2f08acb28601b3d140eab8a74da6a5c9adc8390c7cc481b5d54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|