diff options
author | mkanat%bugzilla.org <> | 2007-07-13 17:43:27 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2007-07-13 17:43:27 +0000 |
commit | 012d45ae9579b0f1690a2daed8212f38e9c9e26a (patch) | |
tree | c42254be11b8b95b4e556e59face03a33d6546e3 /Bugzilla/Object.pm | |
parent | 23c63e06693b324f5ea61555fd150ac4a158679a (diff) | |
download | bugs-012d45ae9579b0f1690a2daed8212f38e9c9e26a.tar bugs-012d45ae9579b0f1690a2daed8212f38e9c9e26a.tar.gz bugs-012d45ae9579b0f1690a2daed8212f38e9c9e26a.tar.bz2 bugs-012d45ae9579b0f1690a2daed8212f38e9c9e26a.tar.xz bugs-012d45ae9579b0f1690a2daed8212f38e9c9e26a.zip |
Bug 385849: Make Bugzilla::Bug do updating for op_sys, rep_platform, and other product-inspecific fields
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit
Diffstat (limited to 'Bugzilla/Object.pm')
-rw-r--r-- | Bugzilla/Object.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Bugzilla/Object.pm b/Bugzilla/Object.pm index 7d24c392a..37e4b9349 100644 --- a/Bugzilla/Object.pm +++ b/Bugzilla/Object.pm @@ -196,6 +196,10 @@ sub set { if (exists $validators{$field}) { my $validator = $validators{$field}; $value = $self->$validator($value, $field); + + if ($self->can('_set_global_validator')) { + $self->_set_global_validator($value, $field); + } } $self->{$field} = $value; @@ -650,6 +654,12 @@ if it exists. Subclasses should use this function to implement the various C<set_> mutators for their different fields. +If your class defines a method called C<_set_global_validator>, +C<set> will call it with C<($value, $field)> as arguments, after running +the validator for this particular field. C<_set_global_validator> does not +return anything. + + See L</VALIDATORS> for more information. =item B<Params> |