[prev in list] [next in list] [prev in thread] [next in thread]
List: cups-bugs
Subject: [cups.bugs] [LOW] STR #3085: Printer or class URL link in "Move all
From: Tatsuya Saito <saitou-t () users ! sourceforge ! jp>
Date: 2009-01-31 14:41:09
Message-ID: 20090131144109.93A1D3C68440 () dns ! easysw ! com
[Download RAW message or body]
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
When I move all job to other printer on Web interface and success it,
CUPS shows "Move all jobs" page.
This page includes a hyper link of a printer which got all job.
But the link cannot show that printer page because it is like "ipp://~".
It should be like "/printers/~".
I attach a patch.
Link: http://www.cups.org/str.php?L3085
Version: 1.4-current
["job-moved.patch" (text/plain)]
Index: templates/job-moved.tmpl
===================================================================
--- templates/job-moved.tmpl (revision 8313)
+++ templates/job-moved.tmpl (working copy)
@@ -3,6 +3,6 @@
<H2 CLASS="title">{job_id?Move Job {job_id}:Move All Jobs}</H2>
<P>{job_id?<A HREF="/jobs/{job_id}">Job {job_id}</A>:All jobs} moved to
-<A HREF="{job_printer_uri}">{job_printer_name}</A>.</P>
+<A HREF="/{is_class?classes:printers}/{job_printer_name}">{job_printer_name}</A>.</P>
</DIV>
Index: cgi-bin/ipp-var.c
===================================================================
--- cgi-bin/ipp-var.c (revision 8313)
+++ cgi-bin/ipp-var.c (working copy)
@@ -477,7 +477,10 @@
{
const char *path = strstr(job_printer_uri, "/printers/");
if (!path)
+ {
path = strstr(job_printer_uri, "/classes/");
+ cgiSetVariable("IS_CLASS", "YES");
+ }
if (path)
{
_______________________________________________
cups-bugs mailing list
cups-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/cups-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic