Skip to content
Snippets Groups Projects
Commit 12207953 authored by Jared Hancock's avatar Jared Hancock
Browse files

Merge pull request #2552 from bailey86/develop


Blank page from 'register' link in notification email to guest user.

Reviewed-By: default avatarJared Hancock <jared@osticket.com>
parents 67f312ef 76349e15
No related branches found
No related tags found
No related merge requests found
......@@ -29,10 +29,12 @@ if (!$cfg || !$cfg->isClientRegistrationEnabled()) {
elseif ($thisclient) {
// Guest registering for an account
if ($thisclient->isGuest()) {
foreach ($thisclient->getForms() as $f)
if ($f->get('type') == 'U')
foreach ($thisclient->getForms() as $f) {
if ($f->get('type') == 'U') {
$user_form = $f;
$user_form->getField('email')->configure('disabled', true);
$user_form->getField('email')->configure('disabled', true);
}
}
}
// Existing client (with an account) updating profile
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment