Avoid error if server sends numeric ID by checking type

This commit is contained in:
Nathan Gray 2014-02-13 00:36:36 +00:00
parent 96e44c018f
commit 09272770a9

View File

@ -898,7 +898,7 @@ var et2_link_entry = et2_inputWidget.extend(
* User selected a value
*/
select: function(event, selected) {
if(selected.item.value !== null)
if(selected.item.value !== null && typeof selected.item.value == "string")
{
// Correct changed value from server
selected.item.value = selected.item.value.trim();