Index: modules/profile.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/profile.module,v
retrieving revision 1.85
diff -u -r1.85 profile.module
--- modules/profile.module	4 Jan 2005 19:52:33 -0000	1.85
+++ modules/profile.module	21 Jan 2005 09:19:27 -0000
@@ -438,7 +438,7 @@
     // 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.'));
     }

