Commit d817bec2 authored by Carsten  Rose's avatar Carsten Rose
Browse files

#3953 / Radio buttons: Auswahl nicht angezeigt, wenn per itemList definiert

Fixed. Problem was a comparison on equal value  AND equal type: '==='. Bug happened (probably) only for numeric items.
parent 911723b6
......@@ -37,6 +37,8 @@ The following features are only tested on linux hosts:
* Concatenation of PDF files - command `pdftk`.
* Mime type detection for uploads - command `file`.
.. _`preparation`:
Preparation
-----------
......@@ -1247,6 +1249,7 @@ The *FormElement.parameter*=*typeAheadLdap* will trigger LDAP searches on every
* Optional: *ldapUseBindCredentials* = 1
All fetched LDAP values will be formatted with:
* *typeAheadLdapValuePrintf*, shown to the user in a drop-down box and
* *typeAheadLdapIdPrintf*, which represents the final data to save.
......@@ -4312,7 +4315,7 @@ Example `_link`: ::
Example `_pdf`, `_zip`: ::
# File 1: id=1&--orientation=Landscape&--page-size=A3
# File 1: U:id=1&--orientation=Landscape&--page-size=A3
# File 2: U:id=form
# File 3: f:fileadmin/file.pdf
SELECT 't:PDF|a:Creating a new PDF|U:id=1&--orientation=Landscape&--page-size=A3|U:id=form|f:fileadmin/file.pdf' AS _pdf
......@@ -5230,3 +5233,60 @@ Same as above, but written in the nested notation ::
}
* Columns starting with a '_' won't be printed but can be accessed as regular columns.
Help
====
* Does the error happens on every *page* or only on specific one?
* Does the error happens on every *form* or only on specific one?
Tips:
* On general errors:
* Always check the Javascript console of your browser, see `javascriptProblem`_.
* Always check the Webserver logfiles, see `webserverErrorLog`_.
Error Messages
--------------
Internal Server Error
'''''''''''''''''''''
The browser shows a red popup with 'Internal Server Error'. The message is generated in the browser. Happens e.g. an AJAX
request response of QFQ (=Server) is broken. This might happen e.g. if PHP can't start successfully or PHP fails to run
due to a missing php module or broken configuration.
.. _`javascriptProblem`:
Javascript problem
------------------
Open the 'Webdeveloper Tools' (FF: F12, Chrome/Opera: Right mouse click > Inspect Element) in your browser, switch to
'console' and reload the page. Inspect the messages.
.. _`webserverErrorLog`:
Webserver error log
-------------------
For apache: /var/log/apache2/error_log
Call to undefined function qfq\\mb_internal_encoding()
''''''''''''''''''''''''''''''''''''''''''''''''''''''
Check that all required php modules are installed. See `preparation`_.
QFQ specific
------------
Variable empty: {{...}}
'''''''''''''''''''''''
Specify the required sanatize class. Remember: for STORE_FORM and STORE_CLIENT the default is `digit`. This means if
the variable content is a string, this violates the sanatize class and the replaced content will be an empty string!
\ No newline at end of file
......@@ -1957,7 +1957,7 @@ abstract class AbstractBuildForm {
$attribute .= Support::doAttribute('value', $itemKey[$ii], false); // Always set value, even to '' - #3832
$attribute .= Support::doAttribute('title', $formElement[FE_TOOLTIP]);
if ($itemKey[$ii] === $value) {
if ($itemKey[$ii] == $value) {
$attribute .= Support::doAttribute('checked', 'checked');
$classActive = ' active';
}
......@@ -2040,7 +2040,7 @@ abstract class AbstractBuildForm {
$attribute .= Support::doAttribute('value', $itemKey[$ii], false); // Always set value, even to '' - #3832
$attribute .= Support::doAttribute('title', $formElement[FE_TOOLTIP]);
if ($itemKey[$ii] === $value) {
if ($itemKey[$ii] == $value) {
$attribute .= Support::doAttribute('checked', 'checked');
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment