From: ivan Date: Sat, 22 Aug 2009 00:29:58 +0000 (+0000) Subject: use name_singular if available too X-Git-Tag: root_of_svc_elec_features~896 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=3d76fb8e984b75d67e5f96f51cfd7761a22736e1 use name_singular if available too --- diff --git a/httemplate/edit/elements/edit.html b/httemplate/edit/elements/edit.html index 23d4db30d..e290bdb86 100644 --- a/httemplate/edit/elements/edit.html +++ b/httemplate/edit/elements/edit.html @@ -677,7 +677,7 @@ Example:
-"> +"> @@ -797,7 +797,7 @@ if ( $cgi->param('error') ) { $opt{action} ||= $object->$pkey() ? 'Edit' : 'Add'; -my $title = $opt{action}. ' '. $opt{name}; +my $title = $opt{action}. ' '. ( $opt{name} || $opt{'name_singular'} ); my $viewall_url = $p . ( $opt{'viewall_dir'} || 'search' ) . "/$table.html"; $viewall_url = $opt{'viewall_url'} if $opt{'viewall_url'};