Marktdefinitionen als eigene Märkte-Konfiguration anzeigen
This commit is contained in:
1 parent
debee672f8
commit
22880b512a
2 files changed
+46
-2
No files matched your search
+10
-1
@@ -79,6 +79,15 @@ if ($currentUser !== null) {
|
||||
'page_size' => 20,
|
||||
];
|
||||
$marketOccurrencesTable['has_more'] = count($marketOccurrencesTable['rows']) >= $marketLimit;
|
||||
$marketDefinitionsTable = [
|
||||
'rows' => market_management_search_markets($pdo, [
|
||||
'include_archived' => true,
|
||||
'sort' => 'name',
|
||||
'sort_direction' => 'ASC',
|
||||
'limit' => 100,
|
||||
'offset' => 0,
|
||||
]),
|
||||
];
|
||||
if ((string) ($_GET['bestellungen_fragment'] ?? '') === '1') {
|
||||
echo auth_render_bestellungen_content($bestellungenTable);
|
||||
exit;
|
||||
@@ -87,7 +96,7 @@ if ($currentUser !== null) {
|
||||
echo auth_render_markets_content($marketOccurrencesTable);
|
||||
exit;
|
||||
}
|
||||
render_auth_home_page($currentUser, $otcProducts, $otcMarketOptions, $bestellungenTable, $marketOccurrencesTable, $lagerProducts, $lagerArtikel, $lagerManufacturers);
|
||||
render_auth_home_page($currentUser, $otcProducts, $otcMarketOptions, $bestellungenTable, $marketOccurrencesTable, $lagerProducts, $lagerArtikel, $lagerManufacturers, $marketDefinitionsTable);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user