Index: branches/RC/core/admin_templates/users/users_edit_groups.tpl =================================================================== diff -u -N -r11142 -r11143 --- branches/RC/core/admin_templates/users/users_edit_groups.tpl (.../users_edit_groups.tpl) (revision 11142) +++ branches/RC/core/admin_templates/users/users_edit_groups.tpl (.../users_edit_groups.tpl) (revision 11143) @@ -103,7 +103,7 @@ " /> Index: branches/RC/core/admin_templates/users/admin_edit_group.tpl =================================================================== diff -u -N -r11141 -r11143 --- branches/RC/core/admin_templates/users/admin_edit_group.tpl (.../admin_edit_group.tpl) (revision 11141) +++ branches/RC/core/admin_templates/users/admin_edit_group.tpl (.../admin_edit_group.tpl) (revision 11143) @@ -1,6 +1,6 @@ - + Index: branches/RC/core/units/general/helpers/sections_helper.php =================================================================== diff -u -N -r11135 -r11143 --- branches/RC/core/units/general/helpers/sections_helper.php (.../sections_helper.php) (revision 11135) +++ branches/RC/core/units/general/helpers/sections_helper.php (.../sections_helper.php) (revision 11143) @@ -181,6 +181,10 @@ $current_data = isset($this->Tree[$section_name]) ? $this->Tree[$section_name] : Array(); + if ($current_data) { + trigger_error('Section "' . $section_name . '" declaration (originally defined in "' . $current_data['SectionPrefix'] . '") was overwriten from "' . $prefix . '"', E_USER_NOTICE); + } + $this->Tree[$section_name] = array_merge_recursive2($current_data, $section_params); } } Index: branches/RC/core/admin_templates/js/script.js =================================================================== diff -u -N -r11087 -r11143 --- branches/RC/core/admin_templates/js/script.js (.../script.js) (revision 11087) +++ branches/RC/core/admin_templates/js/script.js (.../script.js) (revision 11143) @@ -561,13 +561,10 @@ { set_hidden_field('PrefixSpecial', prefix_special); set_hidden_field('grid', grid); - if (use_popups(prefix_special, '')) { - open_popup(prefix_special, '', template); - } - else { - submit_event(prefix_special, '', template); - } + + open_popup(prefix_special, '', template); } + function std_csv_import(prefix_special, grid, template) { set_hidden_field('PrefixSpecial', prefix_special); @@ -579,6 +576,7 @@ submit_event(prefix_special, '', template); } } + // set current form base on ajax function set_form($prefix_special, $ajax) { Index: branches/RC/core/units/ban_rules/ban_rules_config.php =================================================================== diff -u -N -r10999 -r11143 --- branches/RC/core/units/ban_rules/ban_rules_config.php (.../ban_rules_config.php) (revision 10999) +++ branches/RC/core/units/ban_rules/ban_rules_config.php (.../ban_rules_config.php) (revision 11143) @@ -40,7 +40,7 @@ 'label' => 'la_tab_BanList', 'url' => Array('t' => 'ban_rules/ban_rule_list', 'pass' => 'm'), 'permissions' => Array ('view', 'add', 'edit', 'delete'), - 'priority' => 6, + 'priority' => 7, 'type' => stTREE, ), ), Index: branches/RC/core/admin_templates/users/admins_edit.tpl =================================================================== diff -u -N -r11140 -r11143 --- branches/RC/core/admin_templates/users/admins_edit.tpl (.../admins_edit.tpl) (revision 11140) +++ branches/RC/core/admin_templates/users/admins_edit.tpl (.../admins_edit.tpl) (revision 11143) @@ -1,7 +1,7 @@ - +
Index: branches/RC/core/admin_templates/users/admins_edit_groups.tpl =================================================================== diff -u -N -r11142 -r11143 --- branches/RC/core/admin_templates/users/admins_edit_groups.tpl (.../admins_edit_groups.tpl) (revision 11142) +++ branches/RC/core/admin_templates/users/admins_edit_groups.tpl (.../admins_edit_groups.tpl) (revision 11143) @@ -1,6 +1,6 @@ - +
@@ -99,7 +99,7 @@ " /> Index: branches/RC/kernel/admin_templates/users/image_edit.tpl =================================================================== diff -u -N --- branches/RC/kernel/admin_templates/users/image_edit.tpl (revision 11096) +++ branches/RC/kernel/admin_templates/users/image_edit.tpl (revision 0) @@ -1,60 +0,0 @@ - - - - - - - - - - - -
- - - - - -
- -
- - - - - - - - - - - - - - - - - - - - -
- - - - \ No newline at end of file Index: branches/RC/core/admin_templates/users/admins_list.tpl =================================================================== diff -u -N -r11139 -r11143 --- branches/RC/core/admin_templates/users/admins_list.tpl (.../admins_list.tpl) (revision 11139) +++ branches/RC/core/admin_templates/users/admins_list.tpl (.../admins_list.tpl) (revision 11143) @@ -1,5 +1,5 @@ - + Index: branches/RC/core/admin_templates/users/root_edit_password.tpl =================================================================== diff -u -N -r10005 -r11143 --- branches/RC/core/admin_templates/users/root_edit_password.tpl (.../root_edit_password.tpl) (revision 10005) +++ branches/RC/core/admin_templates/users/root_edit_password.tpl (.../root_edit_password.tpl) (revision 11143) @@ -1,7 +1,7 @@ - +
Index: branches/RC/core/units/users/users_event_handler.php =================================================================== diff -u -N -r10966 -r11143 --- branches/RC/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 10966) +++ branches/RC/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 11143) @@ -1490,6 +1490,33 @@ /* @var $file_helper FileHelper */ $file_helper->createItemFiles($event->Prefix, true); // create image fields + + if ($this->Application->IsAdmin()) { + // 4. when in administrative console, then create all users with Active status + $fields = $this->Application->getUnitOption($event->Prefix, 'Fields'); +// $fields['Password']['required'] = 1; // set password required (will broke approve/decline buttons) + $fields['Status']['default'] = STATUS_ACTIVE; + $this->Application->setUnitOption($event->Prefix, 'Fields', $fields); + + // 5. remove groups tab on editing forms when AdvancedUserManagement config variable not set + if (!$this->Application->ConfigValue('AdvancedUserManagement')) { + $edit_tab_presets = $this->Application->getUnitOption($event->Prefix, 'EditTabPresets'); + + foreach ($edit_tab_presets as $preset_name => $preset_tabs) { + if (array_key_exists('groups', $preset_tabs)) { + unset($edit_tab_presets[$preset_name]['groups']); + + if (count($edit_tab_presets[$preset_name]) == 1) { + // only 1 tab left -> remove it too + $edit_tab_presets[$preset_name] = Array (); + } + } + } + + $this->Application->setUnitOption($event->Prefix, 'EditTabPresets', $edit_tab_presets); + } + } + } /** Index: branches/RC/kernel/admin_templates/users/users_edit_groups.tpl =================================================================== diff -u -N -r11140 -r11143 --- branches/RC/kernel/admin_templates/users/users_edit_groups.tpl (.../users_edit_groups.tpl) (revision 11140) +++ branches/RC/kernel/admin_templates/users/users_edit_groups.tpl (.../users_edit_groups.tpl) (revision 11143) @@ -83,13 +83,17 @@
- + + + + + + + + + "> - - - - - +