|
From: <tu...@us...> - 2016-06-12 16:34:34
|
Revision: 7554
http://sourceforge.net/p/web-erp/reponame/7554
Author: turbopt
Date: 2016-06-12 16:34:32 +0000 (Sun, 12 Jun 2016)
Log Message:
-----------
Fix syntax error: add matching parenthesis.
Modified Paths:
--------------
trunk/StockClone.php
trunk/doc/Change.log
Modified: trunk/StockClone.php
===================================================================
--- trunk/StockClone.php 2016-06-08 04:17:53 UTC (rev 7553)
+++ trunk/StockClone.php 2016-06-12 16:34:32 UTC (rev 7554)
@@ -344,10 +344,10 @@
language_id,
descriptiontranslation,
longdescriptiontranslation)
- VALUES('" . $_POST['StockID'] . "','" .
- $LanguageId . "', '" .
- $_POST['Description_' . str_replace('.','_',$LanguageId)] . "', '" .
- $_POST['LongDescription_' . str_replace('.','_',$LanguageId)].
+ VALUES('" . $_POST['StockID'] . "','" .
+ $LanguageId . "', '" .
+ $_POST['Description_' . str_replace('.','_',$LanguageId)] . "', '" .
+ $_POST['LongDescription_' . str_replace('.','_',$LanguageId)].
"')",$ErrMsg,$DbgMsg,true);
}
}
@@ -588,7 +588,7 @@
<input type="hidden" name="New" value="'.$_POST['New'].'" />
<table class="selection">';
-if (empty($_POST['StockID']) || $_POST['StockID'] == $_POST['OldStockID']) || isset($_POST['UpdateCategories'])) {
+if (empty($_POST['StockID']) || ($_POST['StockID'] == $_POST['OldStockID']) || isset($_POST['UpdateCategories'])) {
/*If the page was called without $StockID or empty $StockID then a new cloned stock item is to be entered. Show a form with a part Code field,
otherwise show form for editing with only a hidden OldStockID field. */
@@ -655,10 +655,10 @@
$_POST['Pansize'] = $myrow['pansize'];
$_POST['ShrinkFactor'] = $myrow['shrinkfactor'];
- $sql = "SELECT descriptiontranslation,
- longdescriptiontranslation,
- language_id
- FROM stockdescriptiontranslations
+ $sql = "SELECT descriptiontranslation,
+ longdescriptiontranslation,
+ language_id
+ FROM stockdescriptiontranslations
WHERE stockid='" . $selectedStockID . "' AND (";
foreach ($ItemDescriptionLanguagesArray as $LanguageId) {
$sql .= "language_id='" . $LanguageId ."' OR ";
@@ -694,7 +694,7 @@
echo '<tr>
<td>' . $LanguagesArray[$LanguageId]['LanguageName'] . ' ' . _('Description') . ':</td>
<td><input type="text" name="'. $PostVariableName . '" size="52" maxlength="50" value="' . $_POST[$PostVariableName] . '" /></td>
- <td><input type="hidden" name="' . $LongDescriptionTranslated . '" value="' . $_POST['LongDescription_' . str_replace('.','_',$LanguageId)] . '" />
+ <td><input type="hidden" name="' . $LongDescriptionTranslated . '" value="' . $_POST['LongDescription_' . str_replace('.','_',$LanguageId)] . '" />
</tr>';
}
}
Modified: trunk/doc/Change.log
===================================================================
--- trunk/doc/Change.log 2016-06-08 04:17:53 UTC (rev 7553)
+++ trunk/doc/Change.log 2016-06-12 16:34:32 UTC (rev 7554)
@@ -1,5 +1,6 @@
webERP Change Log
+12/06/16 TurboPT: Fix syntax error in StockClone.php
08/06/16 Exson: add data label for SalesGraph.php.
22/5/16 Release 4.13
|