fixed a postgres problem with moveCollateralDown and moveCollateralUp in the wobject superclass.
This commit is contained in:
parent
e6de18d747
commit
2b7b9ea4d2
1 changed files with 2 additions and 2 deletions
|
|
@ -499,7 +499,7 @@ sub moveCollateralDown {
|
|||
$setValue = $_[5] || $_[0]->get($setName);
|
||||
($seq) = WebGUI::SQL->quickArray("select sequenceNumber from $_[1] where $_[2]=$_[3] and $setName=".quote($setValue));
|
||||
($id) = WebGUI::SQL->quickArray("select $_[2] from $_[1] where $setName=".quote($setValue)
|
||||
." and sequenceNumber=$seq+1 group by $setName");
|
||||
." and sequenceNumber=$seq+1");
|
||||
if ($id ne "") {
|
||||
WebGUI::SQL->write("update $_[1] set sequenceNumber=sequenceNumber+1 where $_[2]=$_[3] and $setName="
|
||||
.quote($setValue));
|
||||
|
|
@ -549,7 +549,7 @@ sub moveCollateralUp {
|
|||
$setValue = $_[5] || $_[0]->get($setName);
|
||||
($seq) = WebGUI::SQL->quickArray("select sequenceNumber from $_[1] where $_[2]=$_[3] and $setName=".quote($setValue));
|
||||
($id) = WebGUI::SQL->quickArray("select $_[2] from $_[1] where $setName=".quote($setValue)
|
||||
." and sequenceNumber=$seq-1 group by $setName");
|
||||
." and sequenceNumber=$seq-1");
|
||||
if ($id ne "") {
|
||||
WebGUI::SQL->write("update $_[1] set sequenceNumber=sequenceNumber-1 where $_[2]=$_[3] and $setName="
|
||||
.quote($setValue));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue