From: <tim...@us...> - 2012-01-29 09:03:20
|
Revision: 4849 http://web-erp.svn.sourceforge.net/web-erp/?rev=4849&view=rev Author: tim_schofield Date: 2012-01-29 09:03:14 +0000 (Sun, 29 Jan 2012) Log Message: ----------- Fix typo preventing the tag description being properly shown Modified Paths: -------------- trunk/PcExpenses.php Modified: trunk/PcExpenses.php =================================================================== --- trunk/PcExpenses.php 2012-01-29 03:23:11 UTC (rev 4848) +++ trunk/PcExpenses.php 2012-01-29 09:03:14 UTC (rev 4849) @@ -83,10 +83,10 @@ echo prnMsg(_('A general ledger code must be selected for this expense'),'error'); echo '<br />'; } - + if (isset($SelectedExpense) AND $InputError !=1) { - $sql = "UPDATE pcexpenses + $sql = "UPDATE pcexpenses SET description = '" . $_POST['Description'] . "', glaccount = '" . $_POST['GLAccount'] . "', tag = '" . $_POST['Tag'] . "' @@ -120,7 +120,7 @@ '" . $_POST['Description'] . "', '" . $_POST['GLAccount'] . "', '" . $_POST['Tag'] . "')"; - + $msg = _('Expense ') . ' ' . $_POST['CodeExpense'] . ' ' . _('has been created'); $checkSql = "SELECT count(codeexpense) FROM pcexpenses"; @@ -207,7 +207,7 @@ $ResultDes = DB_query($sqldesc,$db); $Description=DB_fetch_array($ResultDes); - + $SqlDescTag="SELECT tagdescription FROM tags WHERE tagref='". $myrow[3] . "'"; @@ -227,7 +227,7 @@ $myrow[1], $myrow[2], $Description['accountname'], - $DescriptionTag['tagdesciption'], + $DescriptionTag['tagdescription'], htmlspecialchars($_SERVER['PHP_SELF']) . '?', $myrow[0], htmlspecialchars($_SERVER['PHP_SELF']) . '?', $myrow[0]); } @@ -315,7 +315,7 @@ } //end while loop echo '</select></td></tr>'; - + //Select the tag DB_free_result($result); echo '<tr> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |