Menu

#4965 Javascript error with ENUM on Insert tab

Latest_Git
fixed
None
Normal
2015-06-18
2015-06-18
No

Since 84fa181135a83dd0b75b44f80edc69a5311fbb0c I have a problem when on the Insert tab; clicking an ENUM column gives a JavaScript error.

{
    "pma_version": "4.5.0-dev",
    "browser_name": "CHROME",
    "browser_version": "43.0.2357.124",
    "user_os": "Mac",
    "server_software": "Apache/2.2.22 (Debian)",
    "user_agent_string": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36",
    "locale": "en",
    "configuration_storage": "enabled",
    "php_version": "5.4.41-0+deb7u1",
    "exception_type": "js",
    "exception": {
        "mode": "onerror",
        "message": "Uncaught TypeError: Cannot read property 'length' of undefined",
        "stack": [
            {
                "line": 222,
                "func": "?",
                "context": [
                    "        charExceptionHandling = theType.substring(5,6);",
                    "    }",
                    "    else if (theType.substring(0,7) === \"varchar\") {",
                    "        charExceptionHandling = theType.substring(8,9);",
                    "    }",
                    "    if ($this_function.val().length > 0) {",
                    "        $this_input.removeAttr('min');",
                    "        $this_input.removeAttr('max');",
                    "        // @todo: put back attributes if corresponding function is deselected",
                    "    }",
                    ""
                ],
                "filename": "tbl_change.js"
            }
        ],
        "useragent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36",
        "name": "TypeError",
        "uri": "tbl_change.php?target="
    },
    "script_name": "tbl_change.php",
    "microhistory": {
        "pages": [
            {
                "hash": "tbl_change.php?db=baseball_mark_tracker&table=games&server=1&target=&token=4ead1456e2f8cc650c2afe37a03dd368"
            }
        ],
        "current_index": "1"
    }
}

Discussion

  • Marc Delisle

    Marc Delisle - 2015-06-18
    • assigned_to: Marc Delisle
     
  • Marc Delisle

    Marc Delisle - 2015-06-18
    • status: open --> fixed