phpBMS

Changeset 698 for trunk/phpbms/install

Show
Ignore:
Timestamp:
12/31/09 16:28:12 (2 years ago)
Author:
nate
Message:
  • Removed unused function in bms/install/update.php
  • Fixed aritem relatedid update in generateuuids.php
  • Fixed sql statement in aritems.php
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/install/generateuuids.php

    r659 r698  
    5151    var $tabledefList; 
    5252    var $moduleList; 
     53    var $receiptList; 
     54    var $invoiceList; 
    5355 
    5456 
     
    116118 
    117119            $this->aritemList = $this->generateUUIDList("aritems"); 
    118             $this->recieptList = $this->generateUUIDList("reciepts"); 
     120            $this->receiptList = $this->generateUUIDList("receipts"); 
    119121            $this->productsList = $this->generateUUIDList("products"); 
    120122            $this->addressList = $this->generateUUIDList("addresses"); 
     
    211213            $this->updateFields("aritems", array("clientid"=>$this->clientList)); 
    212214            $this->updateFields("prerequisites", array("parentid"=>$this->productList, "childid"=>$this->productList)); 
    213             $this->updateAritems("clientemailprojects", array("userid"=>$this->userList)); 
     215            $this->updateFields("clientemailprojects", array("userid"=>$this->userList)); 
    214216 
    215217            //we would have to run this if their were addresses associated with other records 
     
    459461 
    460462                case "credit": 
    461  
    462463                    $oldRelatedid = $therecord["relatedid"]; 
    463464                    $updatestatement = " 
     
    465466                            `aritems` 
    466467                        SET 
    467                             `relatedid`='".$this->recieptList[$oldRelatedid]."' 
     468                            `relatedid`='".$this->receiptList[$oldRelatedid]."' 
    468469                        WHERE 
    469470                            `relatedid` = '".$oldRelatedid."' 
     
    482483                            `aritems` 
    483484                        SET 
    484                             `relatedid`='".$this->recieptList[$oldRelatedid]."' 
     485                            `relatedid`='".$this->invoiceList[$oldRelatedid]."' 
    485486                        WHERE 
    486487                            `relatedid` = '".$oldRelatedid."' 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.