--- lib/Arh/View/Units.pm 2008/04/06 21:44:02 57 +++ lib/Arh/View/Units.pm 2008/04/07 09:11:56 58 @@ -6,6 +6,8 @@ use base 'Jifty::View::Declare::CRUD'; use Jifty::View::Declare -base; +use Data::Dump qw/dump/; + sub object_type { 'Unit' }; sub display_columns { @@ -30,7 +32,7 @@ toplogy technique description - contstruction + construction iconography decoration motifs @@ -104,7 +106,11 @@ ); } else { my %opt; - $opt{render_mode} = 'read' if ! $editing; + if ( ! $editing ) { + $opt{render_mode} = 'read'; + # skip fields without values + $opt{render_as} = 'hidden' if ! defined( $update->record->$f ); + } render_param( $update => $f, %opt ); } };