Merge pull request #2395 from tmdvs/api-fixes
Add missing silent paramater, and cast status to Int before comparing
This commit is contained in:
@@ -97,7 +97,8 @@ class UpdateIncidentCommandHandler
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
null,
|
||||
false
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
@@ -199,10 +199,10 @@ class Incident extends Model implements HasPresenter
|
||||
public function getIsResolvedAttribute()
|
||||
{
|
||||
if ($updates = $this->updates->first()) {
|
||||
return $updates->status === self::FIXED;
|
||||
return (int) $updates->status === self::FIXED;
|
||||
}
|
||||
|
||||
return $this->status === self::FIXED;
|
||||
return (int) $this->status === self::FIXED;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user