diff --git a/SalesGraph.php b/SalesGraph.php index a1ab16aa9..4ddb4d49b 100644 --- a/SalesGraph.php +++ b/SalesGraph.php @@ -225,12 +225,12 @@ $result = DB_query($SQL); $fromPeriod = DB_fetch_array($result); - $_POST['FromPeriod'] = $fromPeriod['month'] . ' ' . $fromPeriod['year']; + $starting = $fromPeriod['month'] . ' ' . $fromPeriod['year']; $toPeriod = DB_fetch_array($result); - $_POST['ToPeriod'] = $toPeriod['month'] . ' ' . $toPeriod['year']; + $ending = $toPeriod['month'] . ' ' . $toPeriod['year']; - $GraphTitle .= ' ' . _('From Period') . ' ' . $_POST['FromPeriod'] . ' ' . _('to') . ' ' . $_POST['ToPeriod'] . "\n\r"; + $GraphTitle .= ' ' . _('From Period') . ' ' . $starting . ' ' . _('to') . ' ' . $ending . "\n\r"; if ($_POST['SalesArea']=='All'){ $GraphTitle .= ' ' . _('For All Sales Areas'); diff --git a/doc/Change.log b/doc/Change.log index febae1e7a..ec3cb5dcc 100644 --- a/doc/Change.log +++ b/doc/Change.log @@ -1,5 +1,6 @@ webERP Change Log +2/5/18 PaulT: SalesGraph.php: Rework previous 7908 implementation that caused graphing to break. (Reported broken in forums by Paul Becker: http://www.weberp.org/forum/showthread.php?tid=8071) 2/4/18 PaulT: InternalStockRequestInquiry.php: Restore ONE space to previous 7936 commit. 2/4/18 PaulT: Remove unused $db and $conn parameters from DB_Last_Insert_ID() and (where present) from DB_show_tables(), and DB_show_fields(). Also, remove any unused 'global $db' references across the code base. 2/4/18 Paul Becker (PaulT commit): MRPPlannedPurchaseOrders.php: Add capability to review planned purchase orders and add a new link to convert to a new PO. (Reported in forums: http://www.weberp.org/forum/showthread.php?tid=8061)