diff --git a/Templates/controller.pm.tem b/Templates/controller.pm.tem index c398ec7..8352ae8 100644 --- a/Templates/controller.pm.tem +++ b/Templates/controller.pm.tem @@ -35,6 +35,7 @@ use SrvMngr qw(theme_list init_session); use Data::Dumper; use esmith::util; +use esmith::util::network ; use esmith::ConfigDB; use esmith::AccountsDB; use esmith::NetworksDB; diff --git a/Templates/custom.pm.tem b/Templates/custom.pm.tem index e34ccdd..cb26e2b 100644 --- a/Templates/custom.pm.tem +++ b/Templates/custom.pm.tem @@ -6,6 +6,7 @@ # and provison of the control data for table(s) # use esmith::util; +use esmith::util::network; use esmith::ConfigDB; use esmith::HostsDB; use esmith::AccountsDB; @@ -61,12 +62,10 @@ our $ddb = esmith::DomainsDB->open() || die("Couldn't open Domains db"); sub get_${tablecontrol[0]} { # Return an array of hashes of the contents for each row and column for ${tablecontrol[0]} - # default is a single row of strings "col1header-1, col2header-1, col3Header-1 etc" - # Cols needed are: + # Cols/fields in hash needed are: # ${col}, # my $c = shift; - my $control_data = $c->stash('${tablecontrol[0]}'); my @ret = {};