bugfix for xml upload parsing
Tara L Andrews [Mon, 17 Sep 2012 13:21:56 +0000 (15:21 +0200)]
lib/stemmaweb/Controller/Root.pm

index 4d42c28..4ddcfe6 100644 (file)
@@ -130,7 +130,10 @@ sub newtradition :Local :Args(0) {
                        } catch {
                                $errmsg = "Unexpected parsing error";
                        }
-                       last if $tradition;
+                       if( $tradition ) {
+                               $errmsg = undef;
+                               last;
+                       }
                }
        } elsif( $ext =~ /^(txt|csv|xls(x)?)$/ ) {
                # If it's Excel we need to pass excel => $ext;