diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-10-14 18:19:50 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-10-14 18:19:50 +0200 |
commit | ce00a61057535d49aa0e83181a1d317d7842571b (patch) | |
tree | 280243de9ff791449fb2c82f3f0f2b9bd931d5b2 /docs/en/rst/integrating/extensions.rst | |
parent | 6367a26da4093a8379e370ef328e9507c98b2e7e (diff) | |
parent | 6657fa9f5210d5b5a9b14c0cba6882bd56232054 (diff) | |
download | bugzilla-ce00a61057535d49aa0e83181a1d317d7842571b.tar.gz bugzilla-ce00a61057535d49aa0e83181a1d317d7842571b.tar.xz |
Merge remote-tracking branch 'bmo/master'
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'}; } |