mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed another bug related to multi edit functionality
SVN revision: 1883
This commit is contained in:
parent
bfa69bbace
commit
8ffd0248d9
23
src/elogd.c
23
src/elogd.c
@ -8714,7 +8714,7 @@ char reply_to[MAX_REPLY_TO * 10], attr[MAX_N_ATTR][NAME_LENGTH], list[MAX_N_ATTR
|
|||||||
if (!strieq(attrib[i], attr[i]))
|
if (!strieq(attrib[i], attr[i]))
|
||||||
sprintf(attrib[i], "- %s -", loc("keep original values"));
|
sprintf(attrib[i], "- %s -", loc("keep original values"));
|
||||||
}
|
}
|
||||||
*n++;
|
(*n)++;
|
||||||
if (isparam("elmode") && strieq(getparam("elmode"), "threaded")) {
|
if (isparam("elmode") && strieq(getparam("elmode"), "threaded")) {
|
||||||
|
|
||||||
// go through all replies in threaded mode
|
// go through all replies in threaded mode
|
||||||
@ -8819,19 +8819,11 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
memset(attrib, 0, sizeof(attrib));
|
memset(attrib, 0, sizeof(attrib));
|
||||||
for (i = n = 0; i < atoi(getparam("nsel")); i++) {
|
for (i = n = 0; i < atoi(getparam("nsel")); i++) {
|
||||||
sprintf(str, "s%d", i);
|
sprintf(str, "s%d", i);
|
||||||
if (isparam(str)) {
|
if (isparam(str))
|
||||||
if (n == 0) {
|
|
||||||
size = TEXT_SIZE;
|
|
||||||
el_retrieve(lbs, atoi(getparam(str)), date, attr_list, attrib, lbs->n_attr,
|
|
||||||
text, &size, orig_tag, reply_tag, att, encoding, locked_by);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
compare_attributes(lbs, atoi(getparam(str)), attrib, &n);
|
compare_attributes(lbs, atoi(getparam(str)), attrib, &n);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (message_id && getcfg(lbs->name, "Use Lock", str, sizeof(str)) && atoi(str) == 1 &&
|
if (message_id && getcfg(lbs->name, "Use Lock", str, sizeof(str)) && atoi(str) == 1 &&
|
||||||
locked_by[0] && !isparam("steal")) {
|
locked_by[0] && !isparam("steal")) {
|
||||||
@ -9505,6 +9497,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isparam("nsel")) {
|
||||||
time(&now);
|
time(&now);
|
||||||
if (bedit) {
|
if (bedit) {
|
||||||
if (!getcfg(lbs->name, "Time format", format, sizeof(format)))
|
if (!getcfg(lbs->name, "Time format", format, sizeof(format)))
|
||||||
@ -9526,6 +9519,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
rsprintf("<tr><td nowrap width=\"10%%\" class=\"attribname\">%s:</td>", loc("Entry time"));
|
rsprintf("<tr><td nowrap width=\"10%%\" class=\"attribname\">%s:</td>", loc("Entry time"));
|
||||||
rsprintf("<td class=\"attribvalue\">%s\n", str);
|
rsprintf("<td class=\"attribvalue\">%s\n", str);
|
||||||
rsprintf("<input type=hidden name=entry_date value=\"%s\"></td></tr>\n", date);
|
rsprintf("<input type=hidden name=entry_date value=\"%s\"></td></tr>\n", date);
|
||||||
|
}
|
||||||
|
|
||||||
if (_condition[0])
|
if (_condition[0])
|
||||||
rsprintf("<input type=hidden name=condition value=\"%s\"></td></tr>\n", _condition);
|
rsprintf("<input type=hidden name=condition value=\"%s\"></td></tr>\n", _condition);
|
||||||
@ -17147,7 +17141,14 @@ void show_page_filters(LOGBOOK * lbs, int n_msg, int page_n, BOOL mode_commands,
|
|||||||
|
|
||||||
rsprintf("<option value=\"_all_\">-- %s --\n", list[index]);
|
rsprintf("<option value=\"_all_\">-- %s --\n", list[index]);
|
||||||
|
|
||||||
|
if (isparam(attr_list[index]) && strieq("1", getparam(attr_list[index])))
|
||||||
|
rsprintf("<option selected value=\"1\">%s\n", loc("yes"));
|
||||||
|
else
|
||||||
rsprintf("<option value=\"1\">%s\n", loc("yes"));
|
rsprintf("<option value=\"1\">%s\n", loc("yes"));
|
||||||
|
|
||||||
|
if (isparam(attr_list[index]) && strieq("0", getparam(attr_list[index])))
|
||||||
|
rsprintf("<option selected value=\"0\">%s\n", loc("no"));
|
||||||
|
else
|
||||||
rsprintf("<option value=\"0\">%s\n", loc("no"));
|
rsprintf("<option value=\"0\">%s\n", loc("no"));
|
||||||
|
|
||||||
rsprintf("</select>\n");
|
rsprintf("</select>\n");
|
||||||
@ -18742,7 +18743,7 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa
|
|||||||
rsprintf(" <a href=\"last%d?mode=%s\">%s</a> |\n", last_n * 2, mode, str);
|
rsprintf(" <a href=\"last%d?mode=%s\">%s</a> |\n", last_n * 2, mode, str);
|
||||||
}
|
}
|
||||||
} else if (strieq(menu_item[i], "Select")) {
|
} else if (strieq(menu_item[i], "Select")) {
|
||||||
strlcpy(str, isparam("cmdline") ? getparam("cmdline") : "", sizeof(str));
|
strlcpy(str, getparam("cmdline"), sizeof(str));
|
||||||
if (isparam("select") && atoi(getparam("select")) == 1) {
|
if (isparam("select") && atoi(getparam("select")) == 1) {
|
||||||
/* remove select switch */
|
/* remove select switch */
|
||||||
if (strstr(str, "select=1")) {
|
if (strstr(str, "select=1")) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user