Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
969ba3db
Commit
969ba3db
authored
Mar 16, 2017
by
Carsten Rose
Browse files
AbstractBuildForm.php: removed not so usefull error check.
parent
6af08542
Changes
4
Hide whitespace changes
Inline
Side-by-side
extension/Documentation/Manual.rst
View file @
969ba3db
...
...
@@ -1306,13 +1306,13 @@ Checkboxes can be rendered in mode:
* Each field key (or the corresponding value from the key/value pair) will be rendered right beside the checkbox.
* *FormElement.parameter*
* *checkBoxMode*
:
multi
* *checkBoxMode*
=
multi
* *itemList* - E.g.:
* ``itemList=red,blue,orange``
* ``itemList=1:red,2:blue,3:orange``
* ``itemList={{!SELECT id, value FROM someTable}}``
* *FormElement.sql1* = ``{{!SELECT id, value FROM someTable}}``
* *FormElement.maxlength* - vertical or horizontal alignment:
* Value: '', 0, 1 - The check boxes will be aligned vertical.
...
...
@@ -3802,6 +3802,22 @@ Same as above, but written in the nested notation ::
Release
=======
Version 0.future
----------------
Changes
^^^^^^^
* Play formEditor.sql.
* Dropdownlist of containerassigment updated.
Features
^^^^^^^^
Bug Fixes
^^^^^^^^^
Version 0.13
------------
...
...
extension/qfq/qfq/AbstractBuildForm.php
View file @
969ba3db
...
...
@@ -1136,9 +1136,6 @@ abstract class AbstractBuildForm {
$itemKey
=
array
();
$itemValue
=
array
();
if
(
count
(
$formElement
)
<
20
)
throw
new
CodeException
(
"Invalid (none or to small) Formelement"
,
ERROR_MISSING_FORMELEMENT
);
// Call getItemsForEnumOrSet() only if there a corresponding column really exist.
if
(
false
!==
$this
->
store
->
getVar
(
$formElement
[
'name'
],
STORE_TABLE_COLUMN_TYPES
))
{
$itemValue
=
$this
->
getItemsForEnumOrSet
(
$formElement
[
'name'
],
$fieldType
);
...
...
extension/qfq/qfq/Constants.php
View file @
969ba3db
...
...
@@ -134,7 +134,7 @@ const ERROR_LOG_NOT_WRITABLE = 1045;
const
ERROR_UNNOWN_STORE
=
1046
;
const
ERROR_GET_STORE_ZERO
=
1047
;
const
ERROR_SET_STORE_ZERO
=
1048
;
const
ERROR_MISSING_FORMELEMENT
=
1049
;
const
ERROR_INVALID_OR_MISSING_PARAMETER
=
1050
;
const
ERROR_UNKNOWN_SQL_LOG_MODE
=
1051
;
const
ERROR_FORM_NOT_FOUND
=
1052
;
...
...
extension/qfq/qfq/QuickFormQuery.php
View file @
969ba3db
...
...
@@ -286,6 +286,7 @@ class QuickFormQuery {
case
FORM_UPDATE
:
$formAction
->
elements
(
$recordId
,
$this
->
feSpecAction
,
FE_TYPE_BEFORE_LOAD
);
// data['form-update']=....
$data
=
$build
->
process
(
$formMode
);
$formAction
->
elements
(
$recordId
,
$this
->
feSpecAction
,
FE_TYPE_AFTER_LOAD
);
break
;
...
...
@@ -336,6 +337,7 @@ class QuickFormQuery {
$formAction
->
elements
(
$rc
,
$this
->
feSpecAction
,
FE_TYPE_SENDMAIL
);
// Retrieve FE Values as JSON
// $data['form-update']=...
$data
=
$build
->
process
(
$formMode
,
$htmlElementNameIdZero
);
break
;
...
...
@@ -344,6 +346,7 @@ class QuickFormQuery {
}
if
(
is_array
(
$data
))
{
// $data['element-update']=...
$data
=
$this
->
groupElementUpdateEntries
(
$data
);
}
return
$data
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment