Skip to content

Commit

Permalink
Tim (PaulT commit) UserSettings.php: Fix the 'Maximum Number of Recor…
Browse files Browse the repository at this point in the history
…ds to Display' from populating with the session default at page load instead of the user's setting. Applied Tim's improved handling. (Reported in forums by Paul Becker: http://www.weberp.org/forum/showthread.php?tid=8081)

Signed-off-by: Paul Thursby <[email protected]>
  • Loading branch information
timschofield committed Feb 26, 2018
1 parent 2713e41 commit 223abbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 1 addition & 5 deletions UserSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,6 @@
echo '<div>';
echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';

If (!isset($_POST['DisplayRecordsMax']) OR $_POST['DisplayRecordsMax']=='') {
$_POST['DisplayRecordsMax'] = $_SESSION['DefaultDisplayRecordsMax'];
}

echo '<table class="selection">
<tr>
<td>', _('User ID'), ':</td>
Expand All @@ -120,7 +116,7 @@
<td>', $_SESSION['UsersRealName'], '<input name="RealName" type="hidden" value="', $_SESSION['UsersRealName'], '" /></td></tr>
<tr>
<td>', _('Maximum Number of Records to Display'), ':</td>
<td><input class="integer" maxlength="3" name="DisplayRecordsMax" required="required" size="3" title="', _('The input must be positive integer'), '" type="text" value="', $_POST['DisplayRecordsMax'], '" /></td>
<td><input class="integer" maxlength="3" name="DisplayRecordsMax" required="required" size="3" title="', _('The input must be positive integer'), '" type="text" value="', $_SESSION['DisplayRecordsMax'], '" /></td>
</tr>';

// Select language:
Expand Down
1 change: 1 addition & 0 deletions doc/Change.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
webERP Change Log

7/2/18 Tim (PaulT commit) UserSettings.php: Fix the 'Maximum Number of Records to Display' from populating with the session default at page load instead of the user's setting. Applied Tim's improved handling. (Reported in forums by Paul Becker: http://www.weberp.org/forum/showthread.php?tid=8081)
6/2/18 geo_displaymap_customers.php, geo_displaymap_suppliers.php: Fix a few PHP short-tags, and move some javascript from PHP output to fix 'missing tag' validation complaints.
6/2/18 MRPPlannedPurchasekOrders.php, MRPPlannedWorkOrders.php: PaulT: Add missing table cell to work orders to match recent change to planned purchase orders and replace 'where clause joins' with table join in both files. Paul B/PaulT: Apply consistent code formatting between both files. (Some consistency matters reported in forums: http://www.weberp.org/forum/showthread.php?tid=8061)
5/2/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)
Expand Down

0 comments on commit 223abbb

Please sign in to comment.