Clean up to get ready for CMSC and LCI.

This commit is contained in:
Scott Idem
2025-05-22 13:27:23 -04:00
parent 15d417ba52
commit 6b585090d0
4 changed files with 22 additions and 47 deletions

View File

@@ -354,17 +354,17 @@ if ($ae_loc.site_access_key || $ae_loc.site_domain_access_key) {
// BEGIN: Special Checks for Events, Sponsorships, IDAA, CHOW, etc.:
// There should almost always be an event_id set.
if ($ae_loc?.site_cfg_json?.slct__event_id) {
$events_slct.event_id = $ae_loc.site_cfg_json.slct__event_id;
$events_loc.event_id = $ae_loc.site_cfg_json.slct__event_id;
} else if ($events_slct?.event_id) {
// console.log(`Event ID already set:`, $events_slct.event_id);
$events_loc.event_id = $events_slct.event_id;
} else {
if (log_lvl > 1) {
console.log(`No Event ID set!`);
}
}
// if ($ae_loc?.site_cfg_json?.slct__event_id) {
// $events_slct.event_id = $ae_loc.site_cfg_json.slct__event_id;
// $events_loc.event_id = $ae_loc.site_cfg_json.slct__event_id;
// } else if ($events_slct?.event_id) {
// // console.log(`Event ID already set:`, $events_slct.event_id);
// $events_loc.event_id = $events_slct.event_id;
// } else {
// if (log_lvl > 1) {
// console.log(`No Event ID set!`);
// }
// }
// This is mainly for Precon CHOW
if ($ae_loc?.site_cfg_json?.slct__sponsorship_cfg_id) {