Ticket #802 (reopened defect)

Opened 2 years ago

Last modified 21 months ago

Slovenian state information missing / 'Not listed' will not submit

Reported by: sam Owned by: paul
Priority: major Milestone: Maintenance
Component: Drupal modules & settings Keywords: location
Cc: paul, ed Estimated Number of Hours: 0.0
Add Hours to Ticket: 0 Billable?: yes
Total Hours: 1.0

Description

User reported: "I'm trying to register our fledgling initiative based in Dovje-Mojstrana, Slovenia. When I select the country, the Province/State? box automatically comes up as not listed. But then when I press preview to be ready to send, it says "The specified province was not found in the specified country." So I can't submit the form :-(
Please help! I think we will be the first official Transition town in Slovenia!"

I had a go at creating the initiative in a different country, then editing it to Slovenia as a workaround, but that didn't work either:
https://www.transitionnetwork.org/node/37435/edit

Any idea's as to why it won't accept 'not listed' as a valid choice? Or what we can do about it?

Thanks

Sam

Change History

comment:1 Changed 2 years ago by ed

does this help from the 'Regular tasks and replies' doc
(https://docs.google.com/document/d/1aYXPkzPNcR6LrwgPzOf0bYPc0q5CMI5DTS4Wm0LeWuQ/edit#)

User will say they can’t find a region in their country - this is probably because the location module’s regions don’t map to their regions. So I dig out the regions list served by the location module which is here:
https://github.com/i-jk/OBSOLETE-Transition-Network/tree/live/sites/all/modules/location/supported
And have a look - if it’s obvious, I’ll set their location for them, if not, I’ll send them the list and ask them.
If it’s not on there - we can either add it manually (not a great idea, it’s a bodge on a patch) - or tell them that’s all we’ve got. Improvements to this module will come with a move to D7 - ie a *massive* move, so we’re rather embedded in this situation for now...

comment:2 Changed 2 years ago by sam

Hi Ed

That would help if it was a case of having the wrong region, the problem here I think is that there are no regions at all.

Ticket 316 seems relevant here:
/trac/ticket/316

My assumption is that the 'not listed' option was added at some point as a workaround for countries where we have incomplete data on regions? But for some reason that's no longer working?

Thanks

Sam

comment:3 Changed 2 years ago by ed

@paul job? Sam please confirm and set paul as owner if you'd like to put this to paul...

comment:4 Changed 2 years ago by sam

  • Owner changed from annesley to paul
  • Status changed from new to assigned

Hi Paul, could you take a look at this one?

Thanks

Sam

comment:5 Changed 2 years ago by paul

Hi Sam,

I'll take a look now ..

comment:6 Changed 2 years ago by paul

  • Add Hours to Ticket changed from 0.0 to 0.5
  • Total Hours changed from 0.0 to 0.5

Added the province to location.si.inc and cleared the province cache and updated the form.

https://www.transitionnetwork.org/node/37435/edit

comment:7 Changed 2 years ago by sam

  • Status changed from assigned to closed
  • Resolution set to fixed

Lovely stuff. All working now. Thanks Paul.

comment:8 Changed 2 years ago by paul

Cheers Sam :)

comment:9 Changed 2 years ago by annesley

  • Status changed from closed to reopened
  • Resolution fixed deleted
BTW: http://annesley.parrot.transitionnetwork.org/IIRS/registration/
the new IIRS is ok here, just checked it. obviously it uses a live
location lookup service (currently Google). from the comments i am
guessing that the Drupal locations are hard-coded;

On Mon, Oct 27, 2014 at 1:56 PM, Transiton Technology Trac
<trac@tech.transitionnetwork.org> wrote:
> #802: Slovenian state information missing / 'Not listed' will not submit
> -------------------------------------+-------------------------------------
>            Reporter:  sam            |                      Owner:
>                Type:  defect         |  annesley
>            Priority:  major          |                     Status:  new
>           Component:  Drupal         |                  Milestone:
>   modules & settings                 |  Maintenance
>            Keywords:  location       |                 Resolution:
> Add Hours to Ticket:  0              |  Estimated Number of Hours:  0.0
>         Total Hours:  0              |                  Billable?:  1
> -------------------------------------+-------------------------------------
>
> Comment (by ed):
>
>  @paul job? Sam please confirm and set paul as owner if you'd like to put
>  this to paul...
>
> --
> Ticket URL: <https://tech.transitionnetwork.org/trac/ticket/802#comment:3>
> Transition Technology <https://tech.transitionnetwork.org/trac>
> Support and issues tracking for the Transition Network Web Project.

comment:10 Changed 21 months ago by paul

  • Add Hours to Ticket changed from 0.0 to 0.5
  • Total Hours changed from 0.5 to 1.0

Fixed.

https://www.transitionnetwork.org/initiatives/dovje-mojstrana-zelena-prihodnost

Notes:

Changes that needed to be re-applied:

/data/disk/tn/static/transition-network-d6-34-p001-booker-/sites/all/modules/contrib/location/supported/location.si.inc

// Slovenia

function location_province_list_si() {
  return array(
   'DOV' => "Dovje-Mojstrana",
  );
}

The province caches can be cleared here:
https://www.transitionnetwork.org/admin/settings/location/util

Note: See TracTickets for help on using tickets.