From 5bccee847809b1042878f4a0a77ffc4d1460d8fd Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Mon, 24 Oct 2011 14:33:34 +0000 Subject: [PATCH] // Improving admin list action details git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9597 b9a71923-0436-4b27-9f14-aed3839534dd --- admin-dev/themes/template/list_action_details.tpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/admin-dev/themes/template/list_action_details.tpl b/admin-dev/themes/template/list_action_details.tpl index 41ec34727..c47cc128d 100644 --- a/admin-dev/themes/template/list_action_details.tpl +++ b/admin-dev/themes/template/list_action_details.tpl @@ -58,7 +58,8 @@ $(document).ready(function() { var count = 0; // Number of non-empty collum $.each(row, function(it) { - count++; + if(typeof(data.fields_display[it]) != 'undefined') + count++; }); $.each(data.fields_display, function(it, line) { @@ -80,7 +81,7 @@ $(document).ready(function() { else if (count == 0) content.append($(''+row[it]+'')); else - content.append($(''+row[it]+'')); + content.append($(''+row[it]+'')); } }); content.append($(''));