Fixed a bug in moveCollateralUp
This commit is contained in:
parent
eccf36ed27
commit
b777dfcaf8
1 changed files with 1 additions and 1 deletions
|
|
@ -364,7 +364,7 @@ sub moveCollateralUp {
|
||||||
}
|
}
|
||||||
WebGUI::SQL->beginTransaction;
|
WebGUI::SQL->beginTransaction;
|
||||||
my ($seq) = WebGUI::SQL->quickArray("select sequenceNumber from $table where $keyName=".quote($keyValue)." and $setName=".quote($setValue));
|
my ($seq) = WebGUI::SQL->quickArray("select sequenceNumber from $table where $keyName=".quote($keyValue)." and $setName=".quote($setValue));
|
||||||
my ($id) = WebGUI::SQL->quickArray("select $table from $keyName where $setName=".quote($setValue)
|
my ($id) = WebGUI::SQL->quickArray("select $keyName from $table where $setName=".quote($setValue)
|
||||||
." and sequenceNumber=$seq-1");
|
." and sequenceNumber=$seq-1");
|
||||||
if ($id ne "") {
|
if ($id ne "") {
|
||||||
WebGUI::SQL->write("update $table set sequenceNumber=sequenceNumber-1 where $keyName=".quote($keyValue)." and $setName="
|
WebGUI::SQL->write("update $table set sequenceNumber=sequenceNumber-1 where $keyName=".quote($keyValue)." and $setName="
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue