Bug 1215239

Summary: whiptail --notags does not work for checklist
Product: [Fedora] Fedora Reporter: Chuck Liu <cliu81>
Component: newtAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: mlichvar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-23 12:52:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chuck Liu 2015-04-24 17:42:30 UTC
Description of problem:
In whiptail man page:
       --notags
              Don't display tags in the menu, checklist and radiolist widgets.
But in fact it doesn't work for checklist.

Version-Release number of selected component (if applicable):
All versions.

How reproducible:
Always.

Steps to Reproduce:
1. whiptail --title "checklist" --notags --checklist "test" $LINES 60 $((LINES-7)) "tag" "text" ON


Actual results:
Showed tag & text.

Expected results:
Text only.

Additional info:
In checkList function:

    snprintf(format, MAXFORMAT, "%%-%ds  %%s", maxWidth);
    for (i = 0; i < numBoxes; i++) {
	snprintf(buf, MAXBUF, format, cbInfo[i].tag, cbInfo[i].text);

The tag is always used. Didn't check for FLAG_NOTAGS.

Comment 1 Jan Kurik 2015-07-15 14:14:27 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23

Comment 2 Miroslav Lichvar 2016-03-23 12:52:00 UTC
This is now fixed in the upstream git. It will be in newt-0.52.19.