diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/profile.module | 2 | ||||
-rw-r--r-- | modules/profile/profile.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/profile.module b/modules/profile.module index 94e28f130..2e4ef4e65 100644 --- a/modules/profile.module +++ b/modules/profile.module @@ -438,7 +438,7 @@ function profile_admin_add($type) { // Validate the form: profile_validate_form($data); - if (db_result(db_query("SELECT fid FROM {profile_fields} WHERE title = '%s'", $data['title']))) { + if (db_result(db_query("SELECT fid FROM {profile_fields} WHERE title = '%s' AND category = '%s'", $data['title'], $data['category']))) { form_set_error('title', t('The specified title is already in use.')); } diff --git a/modules/profile/profile.module b/modules/profile/profile.module index 94e28f130..2e4ef4e65 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -438,7 +438,7 @@ function profile_admin_add($type) { // Validate the form: profile_validate_form($data); - if (db_result(db_query("SELECT fid FROM {profile_fields} WHERE title = '%s'", $data['title']))) { + if (db_result(db_query("SELECT fid FROM {profile_fields} WHERE title = '%s' AND category = '%s'", $data['title'], $data['category']))) { form_set_error('title', t('The specified title is already in use.')); } |