Index: admin/system_presets/simple/users_u.php
===================================================================
--- admin/system_presets/simple/users_u.php (revision 14590)
+++ admin/system_presets/simple/users_u.php (working copy)
@@ -76,7 +76,7 @@
// virtual fields to hide
$virtual_hidden_fields = Array (
- /*'ValidateLogin', 'SubscribeEmail', 'PrimaryGroup', 'RootPassword', 'FullName', 'UserGroup'*/
+ /*'SubscribeEmail', 'PrimaryGroup', 'RootPassword', 'FullName', 'UserGroup'*/
);
// fields to make required
@@ -88,7 +88,7 @@
// virtual fields to make required
$virtual_required_fields = Array (
- /*'ValidateLogin', 'SubscribeEmail', 'PrimaryGroup', 'RootPassword', 'FullName', 'UserGroup'*/
+ /*'SubscribeEmail', 'PrimaryGroup', 'RootPassword', 'FullName', 'UserGroup'*/
);
// tabs during editing
Index: core/kernel/application.php
===================================================================
--- core/kernel/application.php (revision 14596)
+++ core/kernel/application.php (working copy)
@@ -1642,10 +1642,10 @@
if ( $this->GetVar('expired') == 1 ) {
// this parameter is set only from admin
- $user =& $this->recallObject('u.current');
+ $user =& $this->recallObject('u.login-admin', null, Array ('form_name' => 'login'));
/* @var $user UsersItem */
- $user->SetError('ValidateLogin', 'session_expired', 'la_text_sess_expired');
+ $user->SetError('UserLogin', 'session_expired', 'la_text_sess_expired');
}
if ( ($user_id != USER_GUEST) && defined('DBG_REQUREST_LOG') && DBG_REQUREST_LOG ) {
Index: core/kernel/kbase.php
===================================================================
--- core/kernel/kbase.php (revision 14596)
+++ core/kernel/kbase.php (working copy)
@@ -775,8 +775,11 @@
{
$field_options = $this->GetFieldOptions($field, $is_virtual);
- if (!$field_options) {
- return $field_options;
+ if ( !$field_options ) {
+ $form_name = $this->getFormName();
+ trigger_error('Field "' . $field . '" is not defined' . ($form_name ? ' on "' . $this->getFormName() . '" form' : '') . ' in "' . $this->Prefix . '" unit config', E_USER_WARNING);
+
+ return false;
}
return array_key_exists($option_name, $field_options) ? $field_options[$option_name] : $default;