fixed a problem where the help was pulling non-english ids to generate the next available id.

This commit is contained in:
JT Smith 2003-04-16 00:58:50 +00:00
parent ae49c3f95d
commit b1164d59a9

View file

@ -148,7 +148,7 @@ sub www_editHelpSave {
$session{form}{namespace} = $session{form}{namespace_new};
}
($session{form}{titleId}) = WebGUI::SQL->quickArray("select max(internationalId) from international
where namespace=".quote($session{form}{namespace}));
where namespace=".quote($session{form}{namespace})." and languageId=1");
$session{form}{titleId}++;
$session{form}{bodyId} = $session{form}{titleId}+1;
($session{form}{hid}) = WebGUI::SQL->quickArray("select max(helpId) from help