mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-01 04:49:36 +00:00
fix @d-buchmann bug: after scanning in Info mode, if Info mode is turned off when scanning a part that did not exist, it now redirects user to create part page
This commit is contained in:
parent
a39eeb47be
commit
b31cbf8234
2 changed files with 7 additions and 0 deletions
|
|
@ -382,6 +382,7 @@ class ScanController extends AbstractController
|
|||
'ok' => true,
|
||||
'found' => $targetFound,
|
||||
'redirectUrl' => $redirectUrl, // client redirects only when infoMode=false
|
||||
'createUrl' => $createUrl,
|
||||
'html' => $html,
|
||||
'infoMode' => $infoMode,
|
||||
], 200);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue