Browse Source

Fix getItemField bug.

zhixin 10 years ago
parent
commit
b0f0354e61
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -220,7 +220,7 @@
         }
         var props = field.split('.');
         for (var p in props) {
-            value = value[props[p]];
+            value = value && value[props[p]];
         }
         return escape ? escapeHTML(value) : value;
     };