[Weberp-svn] SF.net SVN: weberp:[8317] trunk
Brought to you by:
sotandeka,
tim_schofield
From: <tim...@us...> - 2011-11-07 07:57:39
|
Revision: 8317 http://weberp.svn.sourceforge.net/weberp/?rev=8317&view=rev Author: tim_schofield Date: 2011-11-07 07:57:32 +0000 (Mon, 07 Nov 2011) Log Message: ----------- Fix for apostrophe in item description Modified Paths: -------------- trunk/PO_Items.php trunk/includes/DefinePOClass.php Modified: trunk/PO_Items.php =================================================================== --- trunk/PO_Items.php 2011-11-03 12:20:30 UTC (rev 8316) +++ trunk/PO_Items.php 2011-11-07 07:57:32 UTC (rev 8317) @@ -954,7 +954,7 @@ $Uom=$POLine->UOM; echo '<input type="hidden" name="ConversionFactor" value="'.$POLine->ConversionFactor.'" />'; echo '<td>' . $POLine->StockID . '</td> - <td>' . $POLine->ItemDescription . '</td> + <td>' . $POLine->GetItemDescription() . '</td> <td><input type="text" class="number" name="Qty' . $POLine->LineNo .'" size="11" value="' . $DisplayQuantity . '" /></td> <td>' . $Uom . '</td> <td><input type="text" class="number" name="NetWeight' . $POLine->LineNo . '" size="11" value="' . locale_number_format($POLine->NetWeight,4) . '" /></td> Modified: trunk/includes/DefinePOClass.php =================================================================== --- trunk/includes/DefinePOClass.php 2011-11-03 12:20:30 UTC (rev 8316) +++ trunk/includes/DefinePOClass.php 2011-11-07 07:57:32 UTC (rev 8317) @@ -292,7 +292,7 @@ $this->Controlled = $Controlled; $this->Serialised = $Serialised; $this->DecimalPlaces=$DecimalPlaces; - $this->ItemDescription = $ItemDescr; + $this->ItemDescription = DB_escape_string($ItemDescr); $this->Quantity = $Qty; $this->ReqDelDate = $ReqDelDate; $this->Price = $Price; @@ -327,5 +327,9 @@ $this->SerialItemsValid=false; $this->AssetID= $AssetID; } + + function GetItemDescription() { + return stripslashes($this->ItemDescription); + } } ?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |