From ba2c76af62876888b194c5eec9c8ea92bf65f2da Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Fri, 12 Dec 2008 06:43:46 +0000 Subject: [PATCH] Fixed problem with numeric attributes and multi edit SVN revision: 2155 --- src/elogd.c | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index 3ecc2e20..f03c6d93 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -9584,17 +9584,19 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL strcpy(ua, attr_list[i]); stou(ua); - rsprintf(" for (var i=0 ; i \"9\")) { break }\n", ua); - rsprintf(" if (i \"9\")) { break }\n", ua); + rsprintf(" if (i") != 0) { + sprintf(str2, "- %s -", loc("keep original values")); + if (i < (int) strlen(str) && strcmp(str, "") != 0 && strcmp(str, str2) != 0) { sprintf(error, loc("Error: Attribute %s must be numeric"), attr_list[index]); show_error(error); return;