[icinga-checkins] icinga.org: icinga-web/next: "Save Cronk" loses "State information" for certain cronks

git at icinga.org git at icinga.org
Fri Apr 19 13:36:58 CEST 2013


Module: icinga-web
Branch: next
Commit: cd25ca4f4690308fbf4e8c83105861960f8a58b0
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=cd25ca4f4690308fbf4e8c83105861960f8a58b0

Author: Marius Hein <marius.hein at netways.de>
Date:   Fri Apr 19 13:35:24 2013 +0200

"Save Cronk" loses "State information" for certain cronks

Add stateful object to CronkScriptInterface call. This
is important that all data is present in CronkRegistry
and CronkBuilder.

fixes #3319

---

 .../Cronks/templates/System/PortalViewSuccess.php  |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/app/modules/Cronks/templates/System/PortalViewSuccess.php b/app/modules/Cronks/templates/System/PortalViewSuccess.php
index 8652416..1e5d6b7 100644
--- a/app/modules/Cronks/templates/System/PortalViewSuccess.php
+++ b/app/modules/Cronks/templates/System/PortalViewSuccess.php
@@ -35,6 +35,10 @@ Cronk.util.initEnvironment(<?php CronksRequestUtil::echoJsonString($rd); ?>, fun
     if (Ext.isDefined(this.state)) {
         portalView.applyState(this.state);
     }
+
+    // Important to track state through
+    // CronkBuilder operations #3319
+    this.setStatefulObject(portalView);
     
     this.add(portalView);
     





More information about the icinga-checkins mailing list