Commit 3b1404f6 authored by Elias Villiger's avatar Elias Villiger
Browse files

Feature 5878 - #!report whitespace is trimmed

Documentation about #!report is extended.
parent a8074eb6
......@@ -2511,7 +2511,8 @@ Fields:
+---------------------+-----------------------------+-----------------------------------------------------------------------------------------------------+
|Maxlength | string |Maximum characters for input. _`field-maxLength` |
+---------------------+-----------------------------+-----------------------------------------------------------------------------------------------------+
|Note | string |Note of *FormElement*. Depending on layout model, right or below of the *FormElement*. _`field-note` |
|Note | string |Note of *FormElement*. Depending on layout model, right or below of the *FormElement*. |
| | |Report syntax can also be used, see _`report-notation` |
+---------------------+-----------------------------+-----------------------------------------------------------------------------------------------------+
|Tooltip | text |Display this text as tooltip on mouse over. _`field-tooltip` |
+---------------------+-----------------------------+-----------------------------------------------------------------------------------------------------+
......@@ -2547,6 +2548,10 @@ to edit, on the same form, a corresponding person email address (which is in a s
{{SELECT a.email FROM Address AS a WHERE a.pId={{id:R0}} ORDER BY a.id LIMIT 1}}
Report syntax can also be used, see _`report-notation`.
.. _`report-notation`:
FE: 'Report' notation
^^^^^^^^^^^^^^^^^^^^^
......
......@@ -509,6 +509,7 @@ abstract class AbstractBuildForm {
return $new;
}
$value = trim($value);
if (substr($value, 0, 8) == SHEBANG_REPORT) {
if ($this->report === null) {
$this->report = new Report(array(), $this->evaluate, false);
......
Markdown is supported
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