allow "none" as international prefix when all calls have country codes, #41198
[freeside.git] / httemplate / browse / pkg_class.html
index f3e2364..b4423f3 100644 (file)
@@ -5,6 +5,7 @@
                  'disableable' => 1,
                  'disabled_statuspos' => 2,
                  'query'       => { 'table'     => 'pkg_class',
+                                    'addl_from' => ' LEFT JOIN pkg_category USING (categorynum)',
                                     'hashref'   => {},
                                     'order_by' => 'ORDER BY classnum',
                                   },
@@ -19,6 +20,8 @@
 die "access denied"
   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
 
+local($FS::Record::qsearch_qualify_columns) = 1;
+
 my $conf = new FS::Conf;
 
 my $html_init = 
@@ -48,7 +51,7 @@ $sth->execute
 if ($sth->fetchrow_arrayref->[0]) {
   push @$header, 'Category';
   push @$fields, 'categoryname';
-  push @$links,  $link;
+  push @$links,  [ $p.'edit/pkg_category.html?', 'categorynum' ]
 }
 
 </%init>