From 05b651fdc6ab5c5317894c62bf0835c467c4908c Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Mon, 22 Jul 2019 17:16:22 +1000 Subject: [PATCH] Allow custom profile updates --- lib/builder.rb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/builder.rb b/lib/builder.rb index d4f779be..a27c6fce 100644 --- a/lib/builder.rb +++ b/lib/builder.rb @@ -434,7 +434,17 @@ class CustomWizard::Builder action['profile_updates'].each do |pu| value = pu['value'] - custom_field = pu['value_custom'] + custom_field = nil + + if pu['value_custom'] + custom_parts = pu['value_custom'].split('.') + if custom_parts.length == 2 && custom_parts[0] == 'custom_field' + custom_field = custom_parts[1] + else + value = custom_parts[0] + end + end + user_field = pu['user_field'] key = pu['key']