Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Apply translation form #2039

Open
wants to merge 28 commits into
base: stable
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c0ef371
[TASK] Apply translation form
rayuth-you Jun 1, 2022
b0eb1c4
[FEATURE] Upgrade form builder to 3.8.2
Bunhok Aug 19, 2022
5e76c27
[FEATURE] Translate form builder
Bunhok Aug 22, 2022
474361c
[FEATURE] Translate input element
Bunhok Sep 20, 2022
8b0ed4a
[FEATURE] Translate Date & Number field
Bunhok Sep 21, 2022
8fe0ae4
[FEATURE] Translate Radio group field
Bunhok Sep 21, 2022
27bc860
[FEATURE] Translate Checkbox group field
Bunhok Sep 22, 2022
4fa056f
[FEATURE] Translate File element
Bunhok Sep 30, 2022
250dc2c
Fixed NoMethod error. in app/helpers/custom_field_properties_helper.rb
kirykr Oct 5, 2022
36a091d
[IMP] Fix issue Tracking frm not saving
Bunhok Oct 6, 2022
4f43039
Merge branch 'stable-after-caching' into OSC-17
kirykr Oct 31, 2022
78b2e9f
Migrate local fields to custom fields
kirykr Nov 4, 2022
f5e3c92
refactored #remove_local_field_prop_unicode, and app/views/shared/fie…
kirykr Nov 11, 2022
9b92ccf
Merge branch 'stable' into OSC-17
kirykr Dec 11, 2023
e26becd
Update client enrollment field properties checkboxes functionality
kirykr Dec 12, 2023
44dea3c
Finished checkbox check/uncheck update enrollment form
kirykr Dec 14, 2023
92c185c
Done with the program stream enrollment
kirykr Dec 19, 2023
3ec5a16
updated custom_property_key_label_to_name.rake
kirykr Dec 21, 2023
0f290f7
working on updating tracking report builder field label
kirykr Dec 22, 2023
6b8a9a9
updated tracking report builder
kirykr Jan 2, 2024
e6441af
Finished exit program. and working on custom form
kirykr Jan 2, 2024
7acf265
update update field properties script
kirykr Jan 5, 2024
7e3432a
Merge branch 'stable' into OSC-17
kirykr Jan 17, 2024
9c87432
Merge branch 'stable' into OSC-17
kirykr Jan 24, 2024
8ffd860
Fixed custom_property_key_label_to_name.rake logic
kirykr Jan 24, 2024
bb64b10
Updated custom_property_key_label_to_name.rake
kirykr Jan 26, 2024
654e6d1
Merge branch 'OSC-17' of github.com:Children-in-Families/oscar-web in…
kirykr Jan 26, 2024
4b15ca8
Merge branch 'stable' into OSC-17
kirykr Jun 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update update field properties script
  • Loading branch information
kirykr committed Jan 5, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 7acf26526a346c3d62b4e0a4f6fd6f12cbf35825
6 changes: 4 additions & 2 deletions lib/tasks/custom_property_key_label_to_name.rake
Original file line number Diff line number Diff line change
@@ -49,13 +49,15 @@ namespace :custom_property_key_label_to_name do
# leav_program.save(validate: false)
# end

CustomFieldProperty.all.each do |custom_field_property|
CustomFieldProperty.order(:id).each do |custom_field_property|
new_props = {}
properties = custom_field_property.properties
custom_field_fields = custom_field_property.custom_field.fields

custom_field_fields.each do |prop|
prop_name = prop['name']
next if prop[prop_name]

new_props[prop_name] = set_new_props(prop, properties)
end
custom_field_property.properties = new_props
@@ -69,5 +71,5 @@ def set_new_props(prop, properties)
prop_label = prop['label']
return properties[prop_label] unless properties[prop_label].is_a?(String)

properties[prop_label].gsub("'", "''")
properties[prop_label] || (properties[prop_label.downcase].is_a?(Array) ? properties[prop_label.downcase].reject(&:blank?) : properties[prop_label.downcase])
end