merging 7.1.4 changes
This commit is contained in:
parent
3d878c09c7
commit
aeba6ec83c
18 changed files with 92 additions and 73 deletions
|
|
@ -125,7 +125,10 @@ Optionally specify to get the count based upon the status of the revisions. Opti
|
|||
sub getRevisionCount {
|
||||
my $self = shift;
|
||||
my $status = shift;
|
||||
my $statusClause = " and status=".$self->session->db->quote($status) if ($status);
|
||||
my $statusClause = "";
|
||||
if ($status) {
|
||||
$statusClause = " and status=".$self->session->db->quote($status);
|
||||
}
|
||||
my ($count) = $self->session->db->quickArray("select count(*) from assetData where assetId=".$self->session->db->quote($self->getId).$statusClause);
|
||||
return $count;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue