labimotion 1.1.3 → 1.1.4

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: ba9c0a13422ef51e2463f066ca1520dec3e8dbb49df8a448456dcce071be8eb0
4
- data.tar.gz: 9db0ceb23bb34a5dedf6e7f1a139218e23e76c76a4cc6b2df710ac7faa885ccf
3
+ metadata.gz: 75c0801b117991ca8b6dc96daebfedbfdbdc7d40e31bb8c78fbc3f1089eaff91
4
+ data.tar.gz: 5f67c104d53b3388549064ab3c8e7bebe5df7d39d1075c3d5c42dce5eee9e07e
5
5
  SHA512:
6
- metadata.gz: 299af77b27b54a9ad05f7d4ca60617d5bf44b3346eff277f29166fb9be1dd6f97b6505b521b4990cf0c6dd0e6cb31f138b375557cd26616801b3fd4427e9c84a
7
- data.tar.gz: 0d15088710b59d7ec17a9c1692ca56dd4dd8ce08bc2b49dae3c4a4ee374af7496957905b07b6ecbbf256c49ce82a865c7cb80e8fde0a2013aa41515fa711ab8a
6
+ metadata.gz: a0c036e9a1fc5f3b44130a2e7bf0038f2d0476461ca6a18994564752cf42737486c4d67ec61a0d698af9f28e92bf04c506035954d13b8dbdd2f5a67722c4b694
7
+ data.tar.gz: 32721efb59f25ed9c2b5ec853987416e2073ab3612881541a9e1e79d2134076998ed18a29cec4efac778f121e6faa3e27d72f0d44e34653e01e9c79e3bebaf95
@@ -262,7 +262,6 @@ module Labimotion
262
262
  end
263
263
  new_prop.dig('layers', 'general', 'fields')&.each_with_index do |fi, idx|
264
264
  if fi['field'] == 'creator' && current_user.present?
265
- fi['label'] = fi['label']
266
265
  fi['value'] = current_user.name
267
266
  fi['system'] = current_user.name
268
267
  new_prop['layers']['general']['fields'][idx] = fi
@@ -273,13 +272,13 @@ module Labimotion
273
272
  if fi['field'] == 'id'
274
273
  fi['value'] = element.id
275
274
  fi['system'] = element.id
276
- new_prop['layers']['general']['fields'][idx] = fi
275
+ new_prop['layers']['sample_details']['fields'][idx] = fi
277
276
  end
278
277
 
279
278
  if fi['field'] == 'label'
280
279
  fi['value'] = element.short_label
281
280
  fi['system'] = element.short_label
282
- new_prop['layers']['general']['fields'][idx] = fi
281
+ new_prop['layers']['sample_details']['fields'][idx] = fi
283
282
  end
284
283
  end
285
284
  dataset.properties = new_prop
@@ -3,5 +3,5 @@
3
3
  ## Labimotion Version
4
4
  module Labimotion
5
5
  IS_RAILS5 = false
6
- VERSION = '1.1.3'
6
+ VERSION = '1.1.4'
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: labimotion
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chia-Lin Lin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-01-31 00:00:00.000000000 Z
12
+ date: 2024-02-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails