summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-05-09 10:32:56 +0200
committeremkael <emkael@tlen.pl>2016-05-09 12:38:03 +0200
commit09d36e18f8e5d7ea5b005606cf9585c2e6c639cd (patch)
treeb8cc714803a256776a7d91bb6ffdf1a44b8ee61a
parent691fcc1f8ce65f41db017d35259e0060c343190d (diff)
* using ControlState instead of ViewState for calendar URL controls
-rw-r--r--app/php/controls/UrlBasedCalendarControl.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/php/controls/UrlBasedCalendarControl.php b/app/php/controls/UrlBasedCalendarControl.php
index 1f737e8..336417b 100644
--- a/app/php/controls/UrlBasedCalendarControl.php
+++ b/app/php/controls/UrlBasedCalendarControl.php
@@ -9,7 +9,7 @@ class UrlBasedCalendarControl extends FacadeTemplateControl {
if ($url) {
$calendar = $this->getFacade()->resolveUrl($url);
if ($calendar) {
- $this->setViewState('Calendar', $calendar);
+ $this->setControlState('Calendar', $calendar);
return;
}
}
@@ -17,7 +17,7 @@ class UrlBasedCalendarControl extends FacadeTemplateControl {
}
public function getCalendar() {
- return $this->getViewState('Calendar');
+ return $this->getControlState('Calendar');
}
}