Fix import, missing sprintf() and should use has() not contains()
This commit is contained in:
parent
f82cf33f7f
commit
724a2f02be
@ -46,7 +46,7 @@ The update to v2 is progressing well - here is a list of work to do and done:
|
|||||||
- [X] Configure login by a specific attribute
|
- [X] Configure login by a specific attribute
|
||||||
- [X] Logout LDAP server
|
- [X] Logout LDAP server
|
||||||
- [X] Export entries as an LDAP
|
- [X] Export entries as an LDAP
|
||||||
- [ ] Import LDIF
|
- [X] Import LDIF
|
||||||
- [X] Schema Browser
|
- [X] Schema Browser
|
||||||
- [ ] Is there something missing?
|
- [ ] Is there something missing?
|
||||||
|
|
||||||
|
@ -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