From: <dai...@us...> - 2011-09-07 09:40:49
|
Revision: 4681 http://web-erp.svn.sourceforge.net/web-erp/?rev=4681&view=rev Author: daintree Date: 2011-09-07 09:40:43 +0000 (Wed, 07 Sep 2011) Log Message: ----------- fix CounterSales.php notices Modified Paths: -------------- trunk/CounterSales.php Modified: trunk/CounterSales.php =================================================================== --- trunk/CounterSales.php 2011-09-06 10:51:43 UTC (rev 4680) +++ trunk/CounterSales.php 2011-09-07 09:40:43 UTC (rev 4681) @@ -20,23 +20,13 @@ } else { $identifier=$_GET['identifier']; } -if (isset($_SESSION['Items'.$identifier])){ +if (isset($_SESSION['Items'.$identifier]) AND isset($_POST['CustRef'])){ //update the Items object variable with the data posted from the form - if (isset($_POST['CustRef'])){ - $_SESSION['Items'.$identifier]->CustRef = $_POST['CustRef']; - } - if (isset($_POST['Comments'])){ - $_SESSION['Items'.$identifier]->Comments = $_POST['Comments']; - } - if (isset($_POST['DeliverTo'])){ - $_SESSION['Items'.$identifier]->DeliverTo = $_POST['DeliverTo']; - } - if (isset($_POST['PhoneNo'])){ - $_SESSION['Items'.$identifier]->PhoneNo = $_POST['PhoneNo']; - } - if (isset($_POST['Email'])){ - $_SESSION['Items'.$identifier]->Email = $_POST['Email']; - } + $_SESSION['Items'.$identifier]->CustRef = $_POST['CustRef']; + $_SESSION['Items'.$identifier]->Comments = $_POST['Comments']; + $_SESSION['Items'.$identifier]->DeliverTo = $_POST['DeliverTo']; + $_SESSION['Items'.$identifier]->PhoneNo = $_POST['PhoneNo']; + $_SESSION['Items'.$identifier]->Email = $_POST['Email']; } if (isset($_POST['QuickEntry'])){ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |