Author: humbedooh
Date: Thu Aug  8 14:39:21 2019
New Revision: 1864710

URL: http://svn.apache.org/viewvc?rev=1864710&view=rev
Log:
Only load agenda'ed report if...it's there!

Modified:
    comdev/reporter.apache.org/trunk/site/wizard/js/source/drafts.js
    comdev/reporter.apache.org/trunk/site/wizard/js/wizard-beta.js

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/drafts.js
URL: 
http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/drafts.js?rev=1864710&r1=1864709&r2=1864710&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/drafts.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/drafts.js Thu Aug  8 
14:39:21 2019
@@ -179,7 +179,7 @@ function report_published(state, json) {
 }
 
 function load_from_agenda() {
-  if (meta_data && meta_data.report) {
+  if (meta_data && meta_data.report && meta_data.filed) {
     if (draft_stepper.editor.unsaved && !window.confirm("You have unsaved 
changes to your current draft. Do you wish to override these with the report in 
the agenda file??")) return;
     draft_stepper.editor.object.value = meta_data.report.report;
     draft_stepper.editor.report = meta_data.report.report;

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/wizard-beta.js
URL: 
http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/wizard-beta.js?rev=1864710&r1=1864709&r2=1864710&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard-beta.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard-beta.js Thu Aug  8 
14:39:21 2019
@@ -1194,7 +1194,7 @@ function report_published(state, json) {
 }
 
 function load_from_agenda() {
-  if (meta_data && meta_data.report) {
+  if (meta_data && meta_data.report && meta_data.filed) {
     if (draft_stepper.editor.unsaved && !window.confirm("You have unsaved 
changes to your current draft. Do you wish to override these with the report in 
the agenda file??")) return;
     draft_stepper.editor.object.value = meta_data.report.report;
     draft_stepper.editor.report = meta_data.report.report;


Reply via email to