Exact Eliot!, the error was in the
sub build_select_field routine
I had put:
Code:
if (! exists $db_select_fields{$column} && $column eq "AltCategories" && exists $db_select_fields{'Category'}) {
$db_select_fields{$db_cols[$db_alt_cat]} = $db_select_fields{'Mult-AltCategories'} = $db_select_fields{'Category'}}
elsif (! exists $db_select_fields{$column} && $column eq "AltCategories" && ! exists $db_select_fields{'Category'}) {
$db_select_fields{$db_cols[$db_alt_cat]} = $db_select_fields{'Mult-AltCategories'} = join (",", &category_list);}
}
but it should put
Code:
if (! exists $db_select_fields{$column} && $column eq "AltCategories" && exists $db_select_fields{'Category'}) {
$db_select_fields{$db_cols[$db_alt_cat]} = $db_select_fields{'Mult-AltCategories'} = $db_select_fields{'Category'}}
elsif (! exists $db_select_fields{$column} && $column eq "AltCategories" && ! exists $db_select_fields{'Category'}) {
$db_select_fields{$db_cols[$db_alt_cat]} = $db_select_fields{'Mult-AltCategories'} = join (",", &category_list);}
that is to say that it had displaced the key '}'
For that if it is not not that you that it can be, now works perfectly, but I have another little problem:
When the page add appears.html when calling add.cgi from a category, no longer comes out the 'category' of the field category in text, but rather they leave all the categories in a menu, like when working with add.cgi from home.html, but have I seen that Anthrotech if that leaves this way, how is it made?
Thanks,
[This message has been edited by Nomada (edited April 17, 2000).]