mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-14 11:08:40 +00:00
Return object and not string
This commit is contained in:
parent
1330df55f1
commit
b5bb42b52e
|
|
@ -1826,7 +1826,7 @@ class DataMapperAbstract implements DataMapperInterface
|
|||
public static function getByRequest(RequestAbstract $request)
|
||||
{
|
||||
if (!is_null($request->getData('id'))) {
|
||||
$result = static::get($request->getData('id'))->__toString();
|
||||
$result = static::get($request->getData('id'));
|
||||
} elseif (!is_null($filter = $request->getData('filter'))) {
|
||||
$filter = strtolower($filter);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user