Jump to content

wayneljw

Members
  • Content count

    1
  • Joined

  • Last visited

Profile Information

  • Real Name
    Wayne Liu
  1. wayneljw

    Country-State Selector

    The bug fix written by Mthierfelder would remove the PHP error message but it causes the customer.php in the admin module loss the functionality for the "state" drop-down when you change the country drop-down. The bug fix document says: Replace: if ($error == false) { with: // +Country-State Selector } // End if (!$refresh) if (($error == false) && ($refresh != 'true')) { // -Country-State Selector and replace the red-bold code with // } End if (!$refresh) After a few hours exploring the code, I finally noticed the bug actually exists in another place: 1. restore to its original code, i.e. the code from the original author is actually correct: } // End if (!$refresh) 2. The bug exist here: original documentation says: ------------- Line 196: Replace: $processed = true; with: $processed = true; // +Country-State Selector } else if ($refresh == 'true') { $cInfo = new objectInfo($HTTP_POST_VARS); } // -Country-State Selector ------------- the correct code should be: ------------- Line 196: Replace: $processed = true; with: $processed = true; // +Country-State Selector } else if ($refresh == 'true') { $cInfo = new objectInfo($HTTP_POST_VARS); // } // -Country-State Selector ------------- Doing so would let you have the dependent drop-down 'state' working in customer.php If someone would issue a bug-fix pack. Please just do so as I haven't joined the community. Thanks.
×