From 9b23399fdd722f3fa9fdf4d2edfa5c1156a0cd8a Mon Sep 17 00:00:00 2001 From: Yung Han Khoe Date: Mon, 21 Apr 2008 15:47:11 +0000 Subject: [PATCH] fixed: When latest Thing is removed from a Thingy only a drag button is displayed --- docs/changelog/7.x.x.txt | 2 ++ lib/WebGUI/Asset/Wobject/Thingy.pm | 3 +++ 2 files changed, 5 insertions(+) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index e0a55daf5..8de81cb8d 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -27,6 +27,8 @@ - Rewrote Event Manager fromthe ground up. - Added WebGUI.str javascript class with sprintf and trim methods. - fixed: Default Thing Name when adding a Thing is Thingy and should be Thing + - fixed: When latest Thing is removed from a Thingy only a drag button is + displayed 7.5.10 diff --git a/lib/WebGUI/Asset/Wobject/Thingy.pm b/lib/WebGUI/Asset/Wobject/Thingy.pm index 2afe5c9f7..6262f951b 100644 --- a/lib/WebGUI/Asset/Wobject/Thingy.pm +++ b/lib/WebGUI/Asset/Wobject/Thingy.pm @@ -1004,6 +1004,9 @@ sub view { elsif ($defaultView eq "addThing"){ return $self->www_editThingData($defaultThingId,"new"); } + else{ + return $self->processTemplate($var, undef, $self->{_viewTemplate}); + } } else{ return $self->processTemplate($var, undef, $self->{_viewTemplate});