1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 14:35:55 +00:00
Frenck Lutke 27b676b7b2 fix checkboxes shown as checked when they're not with mysql
The issue occurs because boolean/tinyint values are retrieved from mysql
as strings, and in php/js all non-empty strings are cast as boolean
true.

Current PDO mysql driver doesn't support `PDO::ATTR_STRINGIFY_FETCHES =
false`, and if I disable prepare-emulation so it uses the native MySQL
driver instead which supposedly does support it, prepare statements no
longer play nice with named parameters.

Every remaining clean solution that comes to mind that can cover all
cases, just for MySQL, adds an annoying amount of additional code /
overhead.

As long as the `App.FormFields.checkbox_tag()` JS function is the only
one suffering from the lack of conversion, I'll go with easy ugly over
here.
2021-02-25 12:24:23 +01:00
2018-12-04 07:15:53 +03:00
2021-02-23 11:05:58 +03:00
2021-02-24 18:58:52 +00:00
2016-05-13 09:10:54 +03:00
2021-02-23 09:01:27 +03:00
2020-03-28 11:45:42 +03:00
2021-02-22 21:47:48 +03:00
2018-01-30 10:36:41 +03:00
2021-02-19 07:07:45 +03:00
2021-02-22 22:43:07 +03:00
2021-02-23 13:36:02 +03:00
2021-01-24 09:30:22 +03:00
2017-04-22 15:42:34 +03:00
2021-02-24 19:55:18 +03:00
2021-02-22 22:35:27 +03:00
2015-07-26 10:30:02 +03:00

Tiny Tiny RSS

Web-based news feed aggregator, designed to allow you to read news from any location, while feeling as close to a real desktop application as possible.

http://tt-rss.org

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Copyright (c) 2005 Andrew Dolgov (unless explicitly stated otherwise).

Uses Silk icons by Mark James: http://www.famfamfam.com/lab/icons/silk/

Description
No description provided
Readme 112 MiB
Languages
Modelica 36.2%
PHP 29.5%
JavaScript 13.7%
CSS 10.6%
Less 5.8%
Other 4.1%