Bugzilla::Version - Bugzilla product version class.
use Bugzilla::Version;
my $version = new Bugzilla::Version({ name => $name, product => $product });
my $value = $version->name;
my $product_id = $version->product_id;
my $product = $version->product;
my $version = Bugzilla::Version->create(
{ name => $name, product => $product });
$version->set_name($new_name);
$version->update();
$version->remove_from_db;
Version.pm represents a Product Version object. It is an implementation of Bugzilla::Object, and thus provides all methods that Bugzilla::Object provides.
The methods that are specific to Bugzilla::Version are listed below.
bug_count()Description: Returns the total of bugs that belong to the version. Params: none. Returns: Integer with the number of bugs.