From f6d29e128d3d29fd6921efce13959d1b99af655c Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 19 Sep 2014 13:58:30 +0800 Subject: [PATCH] skip announcement with no category --- app/views/admin/import/index.html.erb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/views/admin/import/index.html.erb b/app/views/admin/import/index.html.erb index 8b13311..ff11f90 100644 --- a/app/views/admin/import/index.html.erb +++ b/app/views/admin/import/index.html.erb @@ -193,9 +193,11 @@ getPagesInfo(); break; case "gallery": + $(this).fadeOut(); importGallery(); break; case "links": + $(this).fadeOut(); importLinks(); break; case "members": @@ -608,6 +610,12 @@ importModuleData(); return; } + + if(!categories[data['category']]){ + progress++; + importModuleData(); + return; + } var category_id = categories[data['category']]['id']; var Sn = data['Sn'];