navigating to Order after saving journal

This commit is contained in:
Frank Schubert
2022-08-11 14:57:25 +02:00
parent 882896dc5d
commit cf95af9a9b
2 changed files with 17 additions and 0 deletions

View File

@@ -323,6 +323,13 @@
<form method="post" action="<?=self::getUrl("OrderJournal", "save")?>">
<input type="hidden" name="order_id" value="<?=$order->id?>" />
<input type="hidden" name="s" value="<?=$pagination['start']?>" />
<?php if($showSpecial): ?>
<input type="hidden" name="specialProductsOnly" value="1" />
<?php elseif($showVoice): ?>
<input type="hidden" name="voiceProductsOnly" value="1" />
<?php elseif($showLonelies): ?>
<input type="hidden" name="noTermProducts" value="1" />
<?php endif; ?>
<?php if(is_array($filter) && count($filter)) foreach($filter as $n => $v): ?>
<input type="hidden" name="filter[<?=$n?>]" value="<?=$v?>" />
<?php endforeach; ?>

View File

@@ -49,6 +49,16 @@ class OrderJournalController extends mfBaseController {
if (is_array($this->request->filter)) {
$query["filter"] = $this->request->filter;
}
if($this->request->voiceProductsOnly) {
$query['voiceProductsOnly'] = 1;
}
if($this->request->specialProductsOnly) {
$query['specialProductsOnly'] = 1;
}
if($this->request->noTermProducts) {
$query['noTermProducts'] = 1;
}
$qs = http_build_query($query);