{
'key' => 'agent-disable_counts',
- 'section' => 'scalability',
+ 'section' => 'deprecated',
'description' => 'On the agent browse page, disable the customer and package counts. Typically used for very large installs when this page takes too long to render.',
'type' => 'checkbox',
},
{
+ 'key' => 'config-disable_counts',
+ 'section' => 'scalability',
+ 'description' => 'Disable the customer and package counts on the Agents, Packages, and Services pages. Use for very large installs where these pages take too long to render.',
+ 'type' => 'checkbox',
+ },
+
+ {
'key' => 'tollfree-country',
'section' => 'telephony',
'description' => 'Country / region for toll-free recognition',
FS::upgrade_journal->set_done('deprecate_unmask_ss');
}
+ # Rename agent-disable_counts as config-disable_counts, flag now
+ # affects several configuration pages
+ for my $row ( qsearch( conf => { name => 'agent-disable_counts' } )) {
+ $row->name('config-disable_counts');
+ $row->replace;
+ }
+
}
sub upgrade_overlimit_groups {
'Customer classes define groups of customer for reporting.<BR><BR>'.
qq!<A HREF="${p}edit/cust_class.html"><I>Add a customer class</I></A><BR><BR>!;
-#cust_class-disable_counts? or just migrate this to one config probably
-#my $disable_counts = $conf->exists('agent-disable_counts');
+#my $disable_counts = $conf->exists('config-disable_counts');
my $disable_counts = 0;
my $customers_sub = sub {