mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed bug with nonworking 'date' quick filter
SVN revision: 1951
This commit is contained in:
parent
4f52cf5dfd
commit
2b96b8dcb0
@ -131,7 +131,7 @@
|
|||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="1"
|
RuntimeLibrary="1"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
|
|||||||
32
src/elogd.c
32
src/elogd.c
@ -17350,12 +17350,13 @@ void show_page_filters(LOGBOOK * lbs, int n_msg, int page_n, BOOL mode_commands,
|
|||||||
for (attr_index = 0; attr_index < lbs->n_attr; attr_index++)
|
for (attr_index = 0; attr_index < lbs->n_attr; attr_index++)
|
||||||
if (strieq(list[index], attr_list[attr_index]))
|
if (strieq(list[index], attr_list[attr_index]))
|
||||||
break;
|
break;
|
||||||
if (attr_index == lbs->n_attr) {
|
if (attr_index == lbs->n_attr &&
|
||||||
|
!strieq(list[index], "Date") && !strieq(list[index], "Subtext")) {
|
||||||
rsprintf("Error: Attribute \"%s\" for quick filter not found", list[index]);
|
rsprintf("Error: Attribute \"%s\" for quick filter not found", list[index]);
|
||||||
attr_index = 0;
|
attr_index = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strieq(list[index], loc("Date"))) {
|
if (strieq(list[index], "Date")) {
|
||||||
i = isparam("last") ? atoi(getparam("last")) : 0;
|
i = isparam("last") ? atoi(getparam("last")) : 0;
|
||||||
|
|
||||||
rsprintf("<select title=\"%s\" name=last onChange=\"document.form1.submit()\">\n",
|
rsprintf("<select title=\"%s\" name=last onChange=\"document.form1.submit()\">\n",
|
||||||
@ -17432,15 +17433,26 @@ void show_page_filters(LOGBOOK * lbs, int n_msg, int page_n, BOOL mode_commands,
|
|||||||
}
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
sprintf(str, loc("Enter %s"), list[index]);
|
if (strieq(list[index], "Subtext")) {
|
||||||
rsprintf
|
rsprintf
|
||||||
("<input onClick=\"this.value='';\" title=\"%s\" type=text onChange=\"document.form1.submit()\"",
|
("<input onClick=\"this.value='';\" title=\"%s\" type=text onChange=\"document.form1.submit()\"",
|
||||||
str);
|
loc("Enter text"));
|
||||||
sprintf(str, "-- %s --", list[index]);
|
sprintf(str, "-- %s --", loc("Text"));
|
||||||
if (isparam(list[index]) && *getparam(list[index]))
|
if (isparam(list[index]) && *getparam(list[index]))
|
||||||
strencode2(str, getparam(list[index]), sizeof(str));
|
strencode2(str, getparam(list[index]), sizeof(str));
|
||||||
|
|
||||||
rsprintf(" name=\"%s\" value=\"%s\">\n", list[index], str);
|
rsprintf(" name=\"Subtext\" value=\"%s\">\n", str);
|
||||||
|
} else {
|
||||||
|
sprintf(str, loc("Enter %s"), list[index]);
|
||||||
|
rsprintf
|
||||||
|
("<input onClick=\"this.value='';\" title=\"%s\" type=text onChange=\"document.form1.submit()\"",
|
||||||
|
str);
|
||||||
|
sprintf(str, "-- %s --", list[index]);
|
||||||
|
if (isparam(list[index]) && *getparam(list[index]))
|
||||||
|
strencode2(str, getparam(list[index]), sizeof(str));
|
||||||
|
|
||||||
|
rsprintf(" name=\"%s\" value=\"%s\">\n", list[index], str);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user