fix "Create map" form submission, #73266
authorMark Wells <mark@freeside.biz>
Fri, 30 Dec 2016 21:22:43 +0000 (13:22 -0800)
committerMark Wells <mark@freeside.biz>
Fri, 30 Dec 2016 21:22:43 +0000 (13:22 -0800)
httemplate/search/sector.html

index 037df10..f932649 100644 (file)
 %         $text = 'Reprocess';
 %       }
         <form name="create_<% $sectornum |h %>">
-        <input type="hidden" name="sectornum" value="<% $sectornum |h %>">
-        <& /elements/progress-init.html,
-          'create_'.$sectornum,
-          [ 'sectornum' ],
-          $fsurl.'misc/sector-create_map.html',
-          { 'message' => 'Map generated',
-            'url' => $cgi->self_url },
-          "sector$sectornum"
-        &>
-        <a class="createmap" href="#" onclick="sector<% $sectornum %>process()">
-          <% $text %>
-        </a>
-%     }
+          <input type="hidden" name="sectornum" value="<% $sectornum |h %>">
+          <& /elements/progress-init.html,
+            'create_'.$sectornum,
+            [ 'sectornum' ],
+            $fsurl.'misc/sector-create_map.html',
+            { 'message' => 'Map generated',
+              'url' => $cgi->self_url },
+            "sector$sectornum"
+          &>
+          <a class="createmap" href="#" onclick="sector<% $sectornum %>process()">
+            <% $text %>
+          </a>
+        </form>
+%     } # if @need_fields
     </td>
     <td>
 %   if ( length($sector->image) > 0 ) {