Fixed bug #16788: Flexform inputfields remain empty (Thanks to Andreas Kiessling)
authorsteffenk <steffenk@709f56b5-9817-0410-a4d7-c38de5d9e867>
Thu, 24 Feb 2011 23:17:13 +0000 (23:17 +0000)
committersteffenk <steffenk@709f56b5-9817-0410-a4d7-c38de5d9e867>
Thu, 24 Feb 2011 23:17:13 +0000 (23:17 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10632 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/jsfunc.tbe_editor.js

index d2b0eb8..058cfd7 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2011-02-24  Steffen Kamper  <steffen@typo3.org>
 
+       * Fixed bug #16788: Flexform inputfields remain empty (Thanks to Andreas Kiessling)
        * Fixed bug #17735: Class 'tx_em_XmlException' not found when Retrieve / Update
        * Fixed bug #17692: Updating translations does not work anymore
        * Fixed bug #17758: EM: After update repository the info labels are not updated
index a04aaed..a9ec483 100644 (file)
@@ -195,15 +195,16 @@ var TBE_EDITOR = {
                if (type) {
                        if (type == 'required') {
                                form = document[TBE_EDITOR.formname][elementName];
-                                       // Check if we are within a deleted inline element
-                               var testNode = $(form.parentNode);
-                               while(testNode) {
-                                       if (testNode.hasClassName && testNode.hasClassName('inlineIsDeletedRecord')) {
-                                               return result;
-                                       }
-                                       testNode = $(testNode.parentNode);
-                               }
                                if (form) {
+                                               // Check if we are within a deleted inline element
+                                       var testNode = $(form.parentNode);
+                                       while(testNode) {
+                                               if (testNode.hasClassName && testNode.hasClassName('inlineIsDeletedRecord')) {
+                                                       return result;
+                                               }
+                                               testNode = $(testNode.parentNode);
+                                       }
+
                                        var value = form.value;
                                        if (!value || elementData.additional && elementData.additional.isPositiveNumber && (isNaN(value) || Number(value) <= 0)) {
                                                result = 0;