From 8792dd9a20bf57bd28c4e1e26553decfe61139fa Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Wed, 23 Jul 2008 13:06:25 +0000 Subject: [PATCH] Made preset of $user_email work with attributes of type useremail SVN revision: 2118 --- src/elogd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index afe5e87f..7e5a3486 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -10173,7 +10173,8 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL rsprintf("\n"); for (j = 0; j < n_moptions; j++) - if (strcmp(attr_moptions[j], user_list[i]) == 0) + if (strcmp(attr_moptions[j], user_list[i]) == 0 || + strcmp(attr_moptions[j]+7, user_list[i]) == 0) break; if (j < n_moptions) @@ -10218,7 +10219,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL break; get_user_line(lbs, login_name, NULL, NULL, str, NULL, NULL); - if (strieq(str, attrib[index])) + if (strieq(str, attrib[index]) || strieq(str, attrib[index]+7)) rsprintf("