Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PO Entry Form Issue - Prev and Next buttons are disabled
01-09-2018, 08:30 AM, (This post was last modified: 01-09-2018, 08:34 AM by TimSchofield.)
#11
RE: PO Entry Form Issue - Prev and Next buttons are disabled
The thing is that what was happening to the user was that they were searching for all parts, so they were unchecking the "supplier parts only", but then when they clicked next to go to the next page it was checked again. My change basically kept that checkbox consistent throughout the search process no matter how many pages were looked at unless the user actually changed it.

There may be a more efficient way of going about it, but I would have to do a lot of searching, and to be honest I think my patch is most in keeping with way the other scripts work, and is most easily understood so as long as it fixes the issue I would go with it.

Tim
Oh, and as well there is a PHP7 issue on line 1216 giving the warning:

Notice: Only variables should be passed by reference in /PO_Items.php on line 1216

The line:
$imagefile = reset((glob($_SESSION['part_pics_dir'] . '/' . $myrow['stockid'] . '.{' . implode(",", $SupportedImgExt) . '}', GLOB_BRACE)));

Needs to be done in two stages:
$imagefilearray = (glob($_SESSION['part_pics_dir'] . '/' . $myrow['stockid'] . '.{' . implode(",", $SupportedImgExt) . '}', GLOB_BRACE));
$imagefile = reset($imagefilearray);

Thanks
Tim
Reply


Messages In This Thread
RE: PO Entry Form Issue - Prev and Next buttons are disabled - by TimSchofield - 01-09-2018, 08:30 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)