Closed (fixed)
Project:
Location
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Feb 2010 at 21:49 UTC
Updated:
3 Jan 2014 at 01:08 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
yesct commentedIs this really a bug? Please explain.
Comment #2
grendzy commentedYes, this is a bug.
Steps to reproduce:
-- Navigate to /admin/content/node-type/page
-- Enable locations and set coordinate chooser to "require"
-- Navigate to /node/add/page
-- Submit page without entering coordinates.
Expected behavior:
-- Form validation fails.
-- Stars are displayed next to text fields.
Actual behavior:
-- page is saved with required fields empty.
Here's a reroll. Taking the liberty of marking RTBC since I didn't change any of the code.
Comment #3
yesct commentedtagging
Comment #4
rooby commentedThis actually affects all fields, not just the coordinate chooser (unless it's just me, can you confirm?).
Can you make a patch that fixes it for all of the fields?
Comment #5
recrit commentednot sure if this is a bug or just poor description as to what the node settings do. If you have Minimum number of locations set to 0, then the module takes this as the whole location is optional and "relaxes" each fields required setting - ie makes them optional even if they are set to required.
If you do have min number of locations set to 0, then:
Fix - set it to 1. Then all of your field requirements will be enforced.
Comment #6
grendzy commentedresetting status, since #5 confirms this issue is specific to the lat/long fields, which was my observation as well.
Comment #7
rooby commentedAgreed and works for me too.
Committed to 5, 6 & HEAD with a couple of white space fixes.
http://drupal.org/cvs?commit=429424
http://drupal.org/cvs?commit=429418
http://drupal.org/cvs?commit=429426