mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-01-10 14:58:40 +00:00
template fixes + bug fixes + style fixes
This commit is contained in:
parent
62c0921096
commit
ae08723c48
|
|
@ -75,20 +75,20 @@ final class BackendController extends Controller
|
|||
$view->data['accounts'] = ProfileMapper::getAll()
|
||||
->with('account')
|
||||
->with('image')
|
||||
->where('id', $request->getDataInt('id') ?? 0, '<')
|
||||
->where('id', $request->getDataInt('offset') ?? 0, '<')
|
||||
->limit(25)->execute();
|
||||
} elseif ($request->getData('ptype') === 'n') {
|
||||
$view->data['accounts'] = ProfileMapper::getAll()
|
||||
->with('account')
|
||||
->with('image')
|
||||
->where('id', $request->getDataInt('id') ?? 0, '>')
|
||||
->where('id', $request->getDataInt('offset') ?? 0, '>')
|
||||
->limit(25)->execute();
|
||||
} else {
|
||||
$view->data['accounts'] = ProfileMapper::getAll()
|
||||
->with('account')
|
||||
->with('image')
|
||||
->where('id', 0, '>')
|
||||
->limit(25)->execute();
|
||||
->limit(25)->executeGetArray();
|
||||
}
|
||||
|
||||
/** @var \Model\Setting $profileImage */
|
||||
|
|
@ -162,7 +162,7 @@ final class BackendController extends Controller
|
|||
->with('createdBy')
|
||||
->where('createdBy', (int) $profile->account->id)
|
||||
->limit(25)
|
||||
->execute();
|
||||
->executeGetArray();
|
||||
|
||||
$view->data['media'] = $media;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ use phpOMS\Uri\UriFactory;
|
|||
*/
|
||||
$accounts = $this->data['accounts'] ?? [];
|
||||
|
||||
$previous = empty($accounts) ? '{/base}/profile/list' : '{/base}/profile/list?{?}&id=' . \reset($accounts)->id . '&ptype=p';
|
||||
$next = empty($accounts) ? '{/base}/profile/list' : '{/base}/profile/list?{?}&id=' . \end($accounts)->id . '&ptype=n';
|
||||
$previous = empty($accounts) ? '{/base}/profile/list' : '{/base}/profile/list?{?}&offset=' . \reset($accounts)->id . '&ptype=p';
|
||||
$next = empty($accounts) ? '{/base}/profile/list' : '{/base}/profile/list?{?}&offset=' . \end($accounts)->id . '&ptype=n';
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use phpOMS\Account\PermissionType;
|
|||
use phpOMS\Application\ApplicationAbstract;
|
||||
use phpOMS\Dispatcher\Dispatcher;
|
||||
use phpOMS\Event\EventManager;
|
||||
use phpOMS\Localization\ISO3166TwoEnum;
|
||||
use phpOMS\Localization\L11nManager;
|
||||
use phpOMS\Message\Http\HttpRequest;
|
||||
use phpOMS\Message\Http\HttpResponse;
|
||||
|
|
@ -31,7 +30,6 @@ use phpOMS\Message\Http\RequestStatusCode;
|
|||
use phpOMS\Module\ModuleAbstract;
|
||||
use phpOMS\Module\ModuleManager;
|
||||
use phpOMS\Router\WebRouter;
|
||||
use phpOMS\Stdlib\Base\AddressType;
|
||||
use phpOMS\System\MimeType;
|
||||
use phpOMS\Utils\TestUtils;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user