Fixed a bug in reorderCollateral
This commit is contained in:
parent
f57a408f9b
commit
dcab1b53b2
1 changed files with 1 additions and 1 deletions
|
|
@ -437,7 +437,7 @@ sub reorderCollateral {
|
||||||
my $i = 1;
|
my $i = 1;
|
||||||
my $sth = WebGUI::SQL->read("select $keyName from $table where $setName=".quote($setValue)." order by sequenceNumber");
|
my $sth = WebGUI::SQL->read("select $keyName from $table where $setName=".quote($setValue)." order by sequenceNumber");
|
||||||
while (my ($id) = $sth->array) {
|
while (my ($id) = $sth->array) {
|
||||||
WebGUI::SQL->write("update $keyName set sequenceNumber=$i where $setName=".quote($setValue)." and $keyName=".quote($id));
|
WebGUI::SQL->write("update $table set sequenceNumber=$i where $setName=".quote($setValue)." and $keyName=".quote($id));
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
$sth->finish;
|
$sth->finish;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue