Author: mrisaliti
Date: Wed May 25 19:54:27 2011
New Revision: 1127659
URL:
http://svn.apache.org/viewvc?rev=1127659&view=revLog:
Fix a bug that does not show the error messages correctly in same cases on webpos
Modified:
ofbiz/trunk/specialpurpose/webpos/webapp/webpos/images/js/Common.js
Modified: ofbiz/trunk/specialpurpose/webpos/webapp/webpos/images/js/Common.js
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/webpos/webapp/webpos/images/js/Common.js?rev=1127659&r1=1127658&r2=1127659&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/webpos/webapp/webpos/images/js/Common.js (original)
+++ ofbiz/trunk/specialpurpose/webpos/webapp/webpos/images/js/Common.js Wed May 25 19:54:27 2011
@@ -108,7 +108,13 @@ function getServerError(data) {
if (data._ERROR_MESSAGE_LIST_ != undefined) {
serverErrorHash = data._ERROR_MESSAGE_LIST_;
jQuery.each(serverErrorHash, function(i, error) {
- serverError += error;
+ if (error != undefined) {
+ if (error.message != undefined) {
+ serverError += error.message;
+ } else {
+ serverError += error;
+ }
+ }
});
}
if (data._ERROR_MESSAGE_ != undefined) {