summaryrefslogtreecommitdiffstats
path: root/extensions/PhabBugz/bin
diff options
context:
space:
mode:
authordklawren <dklawren@users.noreply.github.com>2018-02-13 16:25:35 +0100
committerGitHub <noreply@github.com>2018-02-13 16:25:35 +0100
commitc047bc48cec495dfba3eaf1146a91acc1e9f8d70 (patch)
tree8fdcce555347987fc9a5729e5ab516ffbc32c2ab /extensions/PhabBugz/bin
parent95e5e0588df0057fbefd3a05e6203c7f8e92ab09 (diff)
downloadbugzilla-c047bc48cec495dfba3eaf1146a91acc1e9f8d70.tar.gz
bugzilla-c047bc48cec495dfba3eaf1146a91acc1e9f8d70.tar.xz
Bug 1434064 - Refactor Project.pm to use Moo for better type checking
Diffstat (limited to 'extensions/PhabBugz/bin')
-rwxr-xr-xextensions/PhabBugz/bin/update_project_members.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/PhabBugz/bin/update_project_members.pl b/extensions/PhabBugz/bin/update_project_members.pl
index 06cc55626..a0449a915 100755
--- a/extensions/PhabBugz/bin/update_project_members.pl
+++ b/extensions/PhabBugz/bin/update_project_members.pl
@@ -55,10 +55,10 @@ my $sync_groups = Bugzilla::Group->match({ name => [ split('[,\s]+', $phab_sync_
foreach my $group (@$sync_groups) {
# Create group project if one does not yet exist
my $phab_project_name = 'bmo-' . $group->name;
- my $project = Bugzilla::Extension::PhabBugz::Project->new({
+ my $project = Bugzilla::Extension::PhabBugz::Project->new_from_query({
name => $phab_project_name
});
- if (!$project->id) {
+ if (!$project) {
$project = Bugzilla::Extension::PhabBugz::Project->create({
name => $phab_project_name,
description => 'BMO Security Group for ' . $group->name