incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1034189 - /incubator/lcf/trunk/modules/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
Date Thu, 11 Nov 2010 22:51:45 GMT
Author: kwright
Date: Thu Nov 11 22:51:45 2010
New Revision: 1034189

URL: http://svn.apache.org/viewvc?rev=1034189&view=rev
Log:
Fix fileconnector UI bug editing multiple paths.

Modified:
    incubator/lcf/trunk/modules/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java

Modified: incubator/lcf/trunk/modules/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java?rev=1034189&r1=1034188&r2=1034189&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
(original)
+++ incubator/lcf/trunk/modules/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
Thu Nov 11 22:51:45 2010
@@ -433,7 +433,9 @@ public class FileConnector extends org.a
         {
           String pathDescription = "_"+Integer.toString(k);
           String pathOpName = "specop"+pathDescription;
-          out.print(
+          if (k == 0)
+          {
+            out.print(
 "  <tr>\n"+
 "    <td class=\"description\"><nobr>Paths:</nobr></td>\n"+
 "    <td class=\"boxcell\">\n"+
@@ -442,7 +444,10 @@ public class FileConnector extends org.a
 "          <td class=\"formcolumnheader\"></td>\n"+
 "          <td class=\"formcolumnheader\"><nobr>Root path</nobr></td>\n"+
 "          <td class=\"formcolumnheader\"><nobr>Rules</nobr></td>\n"+
-"        </tr>\n"+
+"        </tr>\n"
+            );
+          }
+          out.print(
 "        <tr class=\""+(((k % 2)==0)?"evenformrow":"oddformrow")+"\">\n"+
 "          <td class=\"formcolumncell\">\n"+
 "            <input type=\"hidden\" name=\""+pathOpName+"\" value=\"\"/>\n"+



Mime
View raw message