print/cups: Fix checkboxes in the web interface

Add a patch so checkboxes aren't always off when submitting forms.

PR:		279883
This commit is contained in:
Tijl Coosemans 2024-06-21 16:40:23 +02:00
parent d24b33e19b
commit cf99a48a1c
2 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= cups
DISTVERSION= 2.4.10
PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= https://github.com/OpenPrinting/${PORTNAME}/releases/download/v${DISTVERSION}/
DISTNAME= ${PORTNAME}-${DISTVERSION}-source

View File

@ -0,0 +1,11 @@
--- cgi-bin/var.c.orig 2024-06-18 11:11:05 UTC
+++ cgi-bin/var.c
@@ -191,7 +191,7 @@ cgiGetCheckbox(const char *name) /* I - Name of form f
int ret; /* Return value */
- ret = value && !_cups_strcasecmp(value, "checkbox");
+ ret = value && !_cups_strcasecmp(value, "on");
if (!ret && value)
{