[ic] Form action set automatically update_user
Bill Carr
bill at worldwideimpact.com
Fri Dec 12 16:21:37 EST 2003
IC 4.9.9
I would like to have a way to override the update_user() call built into
form action 'set'. If I am using the table-editor to edit a table that
has some of the same column names as my userdb table I do not want my
values updated. I could not find a way to do this with out the
following hack.
--- /home/bill/download/interchange-4.9.9/lib/Vend/Dispatch.pm
2003-10-28 12:22:29.000000000 -0500
+++ /ic/lib/Vend/Dispatch.pm 2003-12-12 16:15:39.000000000 -0500
@@ -534,9 +534,9 @@
return 1;
},
set => sub {
- update_user() unless
$CGI::values{mv_data_auto_number};
+ update_user() unless
$CGI::values{mv_data_auto_number} || $CGI::values{mv_no_update_user};
update_data();
- update_user() if
$CGI::values{mv_data_auto_number};
+ update_user() if
$CGI::values{mv_data_auto_number} && !$CGI::values{mv_no_update_user};
return 1;
},
autoset => sub {
--
Bill Carr
Worldwide Impact
bill at worldwideimpact.com
413-253-6700
More information about the interchange-users
mailing list