Project

General

Profile

Actions

Bug #68558

closed

jsfunc.updateform.js is not compatible with field type "email"

Added by aimcom no-lastname-given over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
Start date:
2015-07-27
Due date:
% Done:

0%

Estimated time:
1.00 h
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

The universal formupdate-function (jsfunc.updateform.js) ignores the new HTML5 field types (e.g. "email").

Perhaps using the case for "text", "textarea", etc. as default could be an option:

    switch(type) {
        case "checkbox":
            fObj.checked = ((value && value!=0) ? "on":"");
            break;
        case "select-one":
            var l=fObj.length;
            for (a=0;a<l;a++) {
                if (fObj.options[a].value == value) {
                    fObj.selectedIndex = a;
                }
            }
            break;
        case "select-multiple":
            var l=fObj.length;
            for (a=0;a<l;a++) {
                if (fObj.options[a].value == value) {
                    fObj.options[a].selected = 1;
                }
            }
            break;
        case "radio":
            var l=fObj.length;
            for (a=0; a<l;a++) {
                if (fObj[a].value==value) {
                    fObj[a].checked = 1;
                }
            }
            break;
        case "text":
        case "textarea":
        case "hidden":
        case "password":
        default:
            fObj.value = value;
            break;
    }
Actions #1

Updated by Wouter Wolters over 8 years ago

Seems valid. Can you come up with a patch?

See http://wiki.typo3.org/CWT for more information.

Actions #2

Updated by Alexander Opitz over 8 years ago

  • Status changed from New to Needs Feedback
  • Target version changed from 6.2.15 to 6.2.16
Actions #3

Updated by Wouter Wolters over 8 years ago

  • Status changed from Needs Feedback to Closed

This is not a bug but more a feature.
The core (7LTS) does not have this piece of JavaScript anymore in its code base.
As our main focus in on 7LTS and the further development of the core I close this ticket now.
Version 6 will receive only critical bugfixes and security updates. This ticket is not critical because nothing is broken.

The mentioned JavaScript file has been moved to: https://github.com/FriendsOfTYPO3/compatibility6 if you still need it.

Actions #4

Updated by Oliver Hader over 6 years ago

  • Category changed from 1050 to Frontend
Actions

Also available in: Atom PDF