Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
User Settings - Missing Value - SOLVED
02-08-2018, 07:08 AM, (This post was last modified: 02-08-2018, 08:23 AM by TurboPT.)
#8
RE: User Settings - Missing Value
Yes, Tim, I had a look...

What your code has is an improvement of existing handling, but we basically have the same change.

The conditional block that I added to post 5 can be eliminated, and use the $_SESSION['DisplayRecordsMax'] directly to set the 'value' as your code has, instead of populating the POST (in the condition) and then use the POST to set the 'value'.

=====

Paul B., so the post 5 change can be ignored, as that entire condition block will be eliminated, but the new handling is:

Change line 123 from this:
PHP Code:
<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

...to this: (near the end)
PHP Code:
<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
I'll commit the changes in just a moment.
Reply


Messages In This Thread
RE: User Settings - Missing Value - by TurboPT - 02-08-2018, 06:12 AM
RE: User Settings - Missing Value - by VortecCPI - 02-08-2018, 06:23 AM
RE: User Settings - Missing Value - by TurboPT - 02-08-2018, 06:27 AM
RE: User Settings - Missing Value - by TurboPT - 02-08-2018, 06:43 AM
RE: User Settings - Missing Value - by VortecCPI - 02-08-2018, 06:58 AM
RE: User Settings - Missing Value - by TurboPT - 02-08-2018, 07:08 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)