Merge pull request #3074 from CihanSenturk/fix-create-document-company-logo-issue
Fixed create document company logo issue
This commit is contained in:
commit
b34b50f07a
|
|
@ -61,6 +61,8 @@ class SettingFieldCreated
|
|||
// Upload attachment
|
||||
$media = $this->getMedia($value, 'settings');
|
||||
|
||||
$real_key = $this->getDocumentSettingKey($type, $key);
|
||||
|
||||
$company->attachMedia($media, Str::snake($real_key));
|
||||
|
||||
$value = $media->id;
|
||||
|
|
@ -71,8 +73,6 @@ class SettingFieldCreated
|
|||
continue;
|
||||
}
|
||||
|
||||
$real_key = setting($this->getDocumentSettingKey($type, $key));
|
||||
|
||||
setting()->set($real_key, $value);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,6 +61,8 @@ class SettingFieldUpdated
|
|||
// Upload attachment
|
||||
$media = $this->getMedia($value, 'settings');
|
||||
|
||||
$real_key = $type . '.' . $key;
|
||||
|
||||
$company->attachMedia($media, Str::snake($real_key));
|
||||
|
||||
$value = $media->id;
|
||||
|
|
@ -71,8 +73,6 @@ class SettingFieldUpdated
|
|||
continue;
|
||||
}
|
||||
|
||||
$real_key = $type . '.' . $key;
|
||||
|
||||
setting()->set($real_key, $value);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue