diff Lib/IMPL/DOM/Transform/PostToDOM.pm @ 157:c7652cf29a80

Fixed PostToDom with empty fields issue. Fixed the includes search order for TT::Document.
author wizard
date Wed, 20 Oct 2010 18:02:47 +0400
parents 1e7f03414b65
children 4267a2ac3d46
line wrap: on
line diff
--- a/Lib/IMPL/DOM/Transform/PostToDOM.pm	Tue Oct 05 17:20:51 2010 +0400
+++ b/Lib/IMPL/DOM/Transform/PostToDOM.pm	Wed Oct 20 18:02:47 2010 +0400
@@ -75,7 +75,7 @@
 	my $prefix = $this->prefix;
 	
 	foreach my $param (grep index($_,$prefix) >= 0 , $query->param()) {
-		defined (my $value = $query->param($param)) or next;
+		length (my $value = $query->param($param)) or next;
 		
 		my @parts = split /\//,$param;