#2714 Radio buttons do not retain value (edit_report.php)

Feature_request
open
nobody
None
5
2014-03-11
2014-03-11
codemunkeh
No

When editing a report on edit_report.php the radio buttons (such as global, header, show in menu...) do not start with the correct value, so when applying changes to any field you are likely to overwrite these settings. The values are stored and retrieved from the database accurately, but the value passed to print_radio is incorrect.
Fix
Lines #252-3 of edit_report.php read: ( ! empty ( $report_is_global ) && ( $report_is_global == 'Y'
? 'Y' : 'N' ) )
I have removed the line break and the brackets in bold, and the correct values are shown on page load. This needs to be replicated across all the radio buttons; line numbers #252, #263, #270, #277, #283.

PROGRAM_NAME: WebCalendar v1.2.7 (22 Feb 2013)
SERVER_SOFTWARE: Apache
Web Browser: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
PHP Version: 5.4.25
(don't see how the rest is relevant)

Discussion