Autor Thema: Error I cannot Pinpoint  (Gelesen 1084 mal)

Offline RVRoadTrip

  • Nano
  • **
  • Beiträge: 50
  • Opencaching.US
    • Opencaching.US
Error I cannot Pinpoint
« am: 08. August 2011, 19:11:12 »
On newcache.php, when a user is submitting a new cache and they choose BIT cache, it defaults to 'No container" as it should. However, if they make a mistake (for example, bad coordinates) it reloads the page but changes the container to micro.  This prevents the cache submission.  The page works fine as long as it isn't reloaded.

EDIT: This same error occurs when editing a webcam, virtual, guestbook or USB cache type. It does NOT occur when an event cache is edited.

I have not been able to determine what I need to change so that it reloads "no container" instead of changing it to "micro".  Can anyone offer some insight please?  Thanks!
« Letzte Änderung: 09. August 2011, 22:07:49 von RVRoadTrip »
Jerry
Former OC US Admin

Offline RVRoadTrip

  • Nano
  • **
  • Beiträge: 50
  • Opencaching.US
    • Opencaching.US
Re: Error I cannot Pinpoint
« Antwort #1 am: 09. August 2011, 22:18:18 »
I figured it out.  Line 415 of newcache.php needs to be like this:

if( $sel_type == 6 || $sel_type == 4 || $sel_type == 5 || $sel_type == 10 || $sel_type == 11 || $sel_type == 12)
The original line was :

if( $sel_type == 6 )
Jerry
Former OC US Admin