TT#154500 fix administrator form behaviour

* check $c->state for cases when it does not exist
  (admin user creation)
* return undef instead 0 in the default field method

Change-Id: I3aa69ebc0f5ec5a590c113379bdf0a5a94e35747
mr10.3
Kirill Solomko 4 years ago
parent e5dd7e5587
commit 822f053a77

@ -53,14 +53,14 @@ sub _check_inactive {
}
if ((grep { $field_name eq $_ }
qw(is_active is_master read_only
show_passwords call_data billing_data role_id)) &&
show_passwords call_data billing_data role_id)) && $c->state &&
$c->state->login eq $c->user->login) {
return 1;
}
}
return 0;
return;
}
sub field_list {

Loading…
Cancel
Save