Fix import, missing sprintf() and should use has() not contains()
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 29s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m41s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 4m57s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 29s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m41s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 4m57s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s
This commit is contained in:
parent
f82cf33f7f
commit
911c6e3229
@ -146,8 +146,8 @@ class Entry extends Model
|
|||||||
{
|
{
|
||||||
$key = $this->normalizeAttributeKey($key);
|
$key = $this->normalizeAttributeKey($key);
|
||||||
|
|
||||||
if (! config('server')->schema('attributetypes')->contains($key))
|
if (! config('server')->schema('attributetypes')->has($key))
|
||||||
throw new AttributeException('Schema doesnt have attribute [%s]',$key);
|
throw new AttributeException(sprintf('Schema doesnt have attribute [%s]',$key));
|
||||||
|
|
||||||
if ($x=$this->objects->get($key)) {
|
if ($x=$this->objects->get($key)) {
|
||||||
$x->addValue($value);
|
$x->addValue($value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user