fix: 500 on event page when user has no company (active_company undefined)
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ea8b622903
commit
8d89b67424
@ -922,7 +922,7 @@ function onColleagueSelect() {
|
|||||||
const c = JSON.parse(select.value);
|
const c = JSON.parse(select.value);
|
||||||
document.getElementById('guest-first-name').value = c.first_name || '';
|
document.getElementById('guest-first-name').value = c.first_name || '';
|
||||||
document.getElementById('guest-last-name').value = c.last_name || '';
|
document.getElementById('guest-last-name').value = c.last_name || '';
|
||||||
document.getElementById('guest-org').value = '{{ active_company.name|default(current_user.company.name|default("", true), true)|e }}';
|
document.getElementById('guest-org').value = '{{ (active_company.name if active_company else (current_user.company.name if current_user.company else ""))|e }}';
|
||||||
} catch(e) {}
|
} catch(e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user