changeset 243:cd2b1f121029

*TTView: fixed template selection based on the model type
author sergey
date Fri, 19 Oct 2012 02:23:15 +0400
parents fe9d62d9054d
children a02b110da931
files Lib/IMPL/Transform.pm Lib/IMPL/Web/Handler/TTView.pm
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Lib/IMPL/Transform.pm	Thu Oct 18 20:02:51 2012 +0400
+++ b/Lib/IMPL/Transform.pm	Fri Oct 19 02:23:15 2012 +0400
@@ -65,6 +65,7 @@
             	
             	push @isa, @{"${sclass}::ISA"};
             } 
+            ;
     	};
     }
 }
--- a/Lib/IMPL/Web/Handler/TTView.pm	Thu Oct 18 20:02:51 2012 +0400
+++ b/Lib/IMPL/Web/Handler/TTView.pm	Fri Oct 19 02:23:15 2012 +0400
@@ -64,7 +64,7 @@
     };
 
     my $doc =
-      $this->loader->document( $this->SelectView( $action, ref $result ),
+      $this->loader->document( $this->SelectView( $action, ref $model ),
         $vars );
 
     return HttpResponse->new(