Commit 4597470e authored by Carsten  Rose's avatar Carsten Rose
Browse files

Fixed bug computing maxlenght. Added formelement.modeSql to fictures,

FillStoreForm.php: fixed typo.
AbstractBuildForm.php: fixed broken if statement.
TestFormEditor.sql: extend formElement.modeSql.
parent a126f2b6
......@@ -662,7 +662,7 @@ abstract class AbstractBuildForm {
// date/datetime
if ($maxLength !== false) {
if (is_numeric($formElement['maxLength'] && $formElement['maxLength'] != '0')) {
if (is_numeric($formElement['maxLength']) && $formElement['maxLength'] != 0) {
if ($formElement['maxLength'] > $maxLength) {
$formElement['maxLength'] = $maxLength;
}
......
......@@ -88,7 +88,7 @@ class FillStoreForm {
// Retrieve SIP vars, e.g. for HIDDEN elements.
$sipValues = $this->store->getStore(STORE_SIP);
// Copy SIP Values; not necessarily defines as FormElements.
// Copy SIP Values; not necessarily defined as a FormElement.
foreach ($sipValues as $key => $value) {
switch ($key) {
case SIP_SIP:
......
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