mod-build 3.6.52-beta.3 → 3.6.52-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/gulp-tasks/templates.js
CHANGED
|
@@ -242,11 +242,11 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
242
242
|
};
|
|
243
243
|
|
|
244
244
|
return async function() {
|
|
245
|
-
if (!templatesData.doNotUseDefaultFieldConfig && !templatesData.defaultConfigCompleted) {
|
|
245
|
+
if (templatesData && !templatesData.doNotUseDefaultFieldConfig && !templatesData.defaultConfigCompleted) {
|
|
246
246
|
await getDefaultFormFieldConfig();
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
-
if (!templatesData.tcpaText && templatesData.primary_trade) {
|
|
249
|
+
if (templatesData && !templatesData.tcpaText && templatesData.primary_trade) {
|
|
250
250
|
await fetchTcpaFromSitegenie();
|
|
251
251
|
}
|
|
252
252
|
|
package/package.json
CHANGED
|
@@ -137,21 +137,17 @@ modForm.mapProjectValue = function(trade) {
|
|
|
137
137
|
*/
|
|
138
138
|
modForm.preprocessContractorFormData = function(formData, currentStep) {
|
|
139
139
|
if (currentStep === 0) {
|
|
140
|
-
var
|
|
140
|
+
var heapCookieData = modUtils.getHeapCookieData(),
|
|
141
141
|
attributionKeys = modUtils.getSupportedTrackingParams();
|
|
142
142
|
|
|
143
143
|
formData.primaryProjectClass = this.mapProjectValue(formData.primaryProjectClass);
|
|
144
144
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
formData[name] = value;
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
}
|
|
145
|
+
// Check heap cookie for tracking params and append to form
|
|
146
|
+
$.each(heapCookieData, function(name, value) {
|
|
147
|
+
if (attributionKeys.indexOf(name) > -1) {
|
|
148
|
+
formData[name] = value;
|
|
149
|
+
}
|
|
150
|
+
});
|
|
155
151
|
|
|
156
152
|
// Check Eloqua GUID cookie value and add it to formData
|
|
157
153
|
var elqGUID = this.elqGetGuidCookieValue();
|