diff options
Diffstat (limited to 'docs/en/rst/integrating/extensions.rst')
-rw-r--r-- | docs/en/rst/integrating/extensions.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/en/rst/integrating/extensions.rst b/docs/en/rst/integrating/extensions.rst index 50f204746..e9ae48630 100644 --- a/docs/en/rst/integrating/extensions.rst +++ b/docs/en/rst/integrating/extensions.rst @@ -49,7 +49,7 @@ To add new fields to a bug, you need to do the following: my $field = new Bugzilla::Field({ name => $name }); return if $field; - + $field = Bugzilla::Field->create({ name => $name, description => $description, @@ -67,12 +67,12 @@ To add new fields to a bug, you need to do the following: .. code-block:: perl - BEGIN { - *Bugzilla::Bug::is_foopy = \&_bug_is_foopy; + BEGIN { + *Bugzilla::Bug::is_foopy = \&_bug_is_foopy; } - + ... - + sub _bug_is_foopy { return $_[0]->{'is_foopy'}; } |