Author: sebb
Date: Sun Jul  6 11:22:46 2025
New Revision: 1926993

URL: http://svn.apache.org/viewvc?rev=1926993&view=rev
Log:
Fetch details once

Modified:
    comdev/reporter.apache.org/trunk/site/wizard/js/source/reportdate.js
    comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/reportdate.js
URL: 
http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/reportdate.js?rev=1926993&r1=1926992&r2=1926993&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/reportdate.js 
(original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/reportdate.js Sun 
Jul  6 11:22:46 2025
@@ -59,16 +59,13 @@ function getReportDate(json, pmc, dateOn
        var today = new Date()
 
        var dates = [] // the entries must be in date order
-       if (!json[pmc]) {
-               pmc = "Foo?"
-       }
 
        var rm = json[pmc] // reporting months for the pmc
 
        // First check if the list contains an every month indicator
        // This is necessary to ensure that the dates are added to the list in 
order
-       for (var i = 0; i < json[pmc].length; i++) {
-               var sm = json[pmc][i];
+       for (var i = 0; i < rm.length; i++) {
+               var sm = rm[i];
                if (everyMonth(sm)) {
                        rm = m // reset to every month
                        break
@@ -120,7 +117,7 @@ function getReportDate(json, pmc, dateOn
                }
        }
        let txt = "";
-       txt += "<b>Reporting schedule:</b> " + (json[pmc] ? formatRm(json[pmc]) 
: "Unknown(?)") + "<br>"
+       txt += "<b>Reporting schedule:</b> " + (rm ? formatRm(rm) : 
"Unknown(?)") + "<br>"
        txt += "<b>Next report date: " + (nextdate ? nextdate.toDateString() : 
"Unknown(?)") + "</b>"
 
        return txt

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js
URL: 
http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js?rev=1926993&r1=1926992&r2=1926993&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Sun Jul  6 
11:22:46 2025
@@ -1971,16 +1971,13 @@ function getReportDate(json, pmc, dateOn
        var today = new Date()
 
        var dates = [] // the entries must be in date order
-       if (!json[pmc]) {
-               pmc = "Foo?"
-       }
 
        var rm = json[pmc] // reporting months for the pmc
 
        // First check if the list contains an every month indicator
        // This is necessary to ensure that the dates are added to the list in 
order
-       for (var i = 0; i < json[pmc].length; i++) {
-               var sm = json[pmc][i];
+       for (var i = 0; i < rm.length; i++) {
+               var sm = rm[i];
                if (everyMonth(sm)) {
                        rm = m // reset to every month
                        break
@@ -2032,7 +2029,7 @@ function getReportDate(json, pmc, dateOn
                }
        }
        let txt = "";
-       txt += "<b>Reporting schedule:</b> " + (json[pmc] ? formatRm(json[pmc]) 
: "Unknown(?)") + "<br>"
+       txt += "<b>Reporting schedule:</b> " + (rm ? formatRm(rm) : 
"Unknown(?)") + "<br>"
        txt += "<b>Next report date: " + (nextdate ? nextdate.toDateString() : 
"Unknown(?)") + "</b>"
 
        return txt


Reply via email to