From 696ac8a9d84d7d1c53052d29a93ea252b3e58ff0 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 24 Jan 2005 21:39:58 +0000 Subject: - Patch #15937 by wulff: made it so that titles of profile fields only need to be unique within a single category. --- modules/profile/profile.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/profile/profile.module') 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.')); } -- cgit v1.2.3