[freeside-commits] freeside/httemplate/edit prospect_main.html, 1.5, 1.6
Ivan,,,
ivan at wavetail.420.am
Sat Mar 12 18:31:12 PST 2011
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv29767/httemplate/edit
Modified Files:
prospect_main.html
Log Message:
qualification address handling changes, RT#7111
Index: prospect_main.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/prospect_main.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -w -d -r1.5 -r1.6
--- prospect_main.html 14 Oct 2010 01:14:27 -0000 1.5
+++ prospect_main.html 0 ??? 1900 4203292:32712:-1405444096 -0000 1.6
@@ -19,12 +19,6 @@
{ 'field' => 'contactnum',
'type' => 'contact',
'colspan' => 6,
- ##actually o2m, but this seems to be working for edit so far
- #'m2name_table' => 'contact',
- #'m2name_namecol' => 'contactnum',
- #'m2_label' => 'Contact',
- #'m2_error_callback' => $m2_error_callback,
-
'o2m_table' => 'contact',
'm2_label' => 'Contact',
'm2_error_callback' => $m2_error_callback,
@@ -33,6 +27,7 @@
{ 'field' => 'locationnum',
'type' => 'select-cust_location',
'empty_label' => 'No address',
+ 'alt_format' => $conf->exists('prospect_main-alt_address_format'),
},
],
'new_callback' => $new_callback,
@@ -44,6 +39,7 @@
<%init>
my $curuser = $FS::CurrentUser::CurrentUser;
+my $conf = new FS::Conf;
my $prospectnum;
if ( $cgi->param('error') ) {
@@ -139,7 +135,7 @@
my $num = $1;
if ( grep $cgi->param("contactnum$num$_"), @gfields ) {
my $x = new FS::contact {
- 'contactnum' => $cgi->param("contactnum$num"),
+ 'contactnum' => scalar($cgi->param("contactnum$num")),
map { $_ => scalar($cgi->param("contactnum${num}_$_")) } @fields,
};
$x;
More information about the freeside-commits
mailing list