From 33a7534299a399e854dd0c3ae7108fe98dc4296f Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 10 Oct 2013 14:52:48 +0000 Subject: [PATCH] Include offending widget in attribute type mismatch warning --- etemplate/js/et2_core_common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_core_common.js b/etemplate/js/et2_core_common.js index 35a0486b7e..66379451cb 100644 --- a/etemplate/js/et2_core_common.js +++ b/etemplate/js/et2_core_common.js @@ -102,9 +102,9 @@ function et2_checkType(_val, _type, _attr, _widget) if(typeof _val != "undefined" && _val) { - egw.debug("warn", "'" + _val + "' was not of specified _type '" + + egw.debug("warn", "Widget %o: '" + _val + "' was not of specified _type '" + _type + (_attr != null ? "' for attribute '" + _attr + "' " : "") + - "and is now '" + res + "'"); + "and is now '" + res + "'",_widget); } return res; }