From 606874e9a883ae547df198498fce6fca7b735466 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 10 Aug 2015 19:50:41 +0200 Subject: Fix TProperyValue::ensureEnum and some unit tests class names --- framework/Web/UI/ActiveControls/TDraggable.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'framework/Web/UI/ActiveControls/TDraggable.php') diff --git a/framework/Web/UI/ActiveControls/TDraggable.php b/framework/Web/UI/ActiveControls/TDraggable.php index b4780eda..45344b27 100755 --- a/framework/Web/UI/ActiveControls/TDraggable.php +++ b/framework/Web/UI/ActiveControls/TDraggable.php @@ -80,7 +80,7 @@ class TDraggable extends TPanel $value=TDraggableRevertOptions::Revert; elseif (strcasecmp($value,'false')==0 || $value===false) $value=TDraggableRevertOptions::None; - $this->setViewState('Revert', TPropertyValue::ensureEnum($value, 'TDraggableRevertOptions'), true); + $this->setViewState('Revert', TPropertyValue::ensureEnum($value, 'Prado\\Web\\UI\\ActiveControls\\TDraggableRevertOptions'), true); } /** @@ -118,7 +118,7 @@ class TDraggable extends TPanel $value=TDraggableGhostingOptions::Ghosting; elseif (strcasecmp($value,'false')==0 || $value===false) $value=TDraggableGhostingOptions::None; - $this->setViewState('Ghosting', TPropertyValue::ensureEnum($value, 'TDraggableGhostingOptions'), TDraggableGhostingOptions::None); + $this->setViewState('Ghosting', TPropertyValue::ensureEnum($value, 'Prado\\Web\\UI\\ActiveControls\\TDraggableGhostingOptions'), TDraggableGhostingOptions::None); } /** @@ -136,7 +136,7 @@ class TDraggable extends TPanel */ public function setConstraint($value) { - $this->setViewState('Constraint', TPropertyValue::ensureEnum($value, 'TDraggableConstraint'), TDraggableConstraint::None); + $this->setViewState('Constraint', TPropertyValue::ensureEnum($value, 'Prado\\Web\\UI\\ActiveControls\\DraggableConstraint'), TDraggableConstraint::None); } /** -- cgit v1.2.3