diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php
index 3cfdb73f22..0c70e2c3cb 100644
--- a/resources/views/partials/bootstrap-table.blade.php
+++ b/resources/views/partials/bootstrap-table.blade.php
@@ -250,7 +250,7 @@
item_icon = 'fa-map-marker';
}
- return ' ' + value.name + '';
+ return ' ' + value.name + '';
} else {
return '';
@@ -527,9 +527,19 @@
}
- function imageFormatter(value) {
+ function imageFormatter(value, row) {
+
+
+
if (value) {
- return '';
+
+ if (row.name) {
+ var altName = row.name;
+ }
+ else if ((row) && (row.model)) {
+ var altName = row.model.name;
+ }
+ return '';
}
}