diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-02-11 02:39:05 +0100 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-02-11 02:39:05 +0100 |
commit | 6b4e9edae6b5accf757097a5e7af97c2fba8f0ff (patch) | |
tree | 60f2102816a06d0cb6043c38ff63abd55b1990be /extensions/Example | |
parent | aca53c540c69496390b172a55a46b817d2828d0f (diff) | |
download | bugzilla-6b4e9edae6b5accf757097a5e7af97c2fba8f0ff.tar.gz bugzilla-6b4e9edae6b5accf757097a5e7af97c2fba8f0ff.tar.xz |
Bug 545551: Hook: object_update_columns
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'extensions/Example')
-rw-r--r-- | extensions/Example/Extension.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/extensions/Example/Extension.pm b/extensions/Example/Extension.pm index 0e4e0f722..e06bd9f2b 100644 --- a/extensions/Example/Extension.pm +++ b/extensions/Example/Extension.pm @@ -386,6 +386,15 @@ sub object_end_of_update { } } +sub object_update_columns { + my ($self, $args) = @_; + my ($object, $columns) = @$args{qw(object columns)}; + + if ($object->isa('Bugzilla::ExampleObject')) { + push(@$columns, 'example'); + } +} + sub object_validators { my ($self, $args) = @_; my ($class, $validators) = @$args{qw(class validators)}; |