Menu

#25 column names not normalised

open
nobody
5
2005-09-09
2005-09-09
Anonymous
No

Not sure exactly where the flaw in the logic is here
(are column names supposed to be stored with or without
table name prefixes in the config file?) but there are
two lines in create_menus.cgi where a table name is
explicitly prefixed to a column name which may already
have been prefixed. I have fixed this by removing any
prefixes from the column name in advance.

create_menus.cgi:98
my $primary_key = $myCONF->{PRIMARY_KEY};
+# normalise by removing any prefixed table name. abg
+$primary_key =~ s/^.*\.([^\.]+)$/$1/;

Symptoms of this were script crashes on attemting to
modify multi-select values.

andrewg at andrewg dot com

Discussion


Log in to post a comment.