Merge #17066 - Fix #17019 - table tabs in header when the table has not yet been

Pull-request: #17066
Fixes: #17019

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-08-09 22:45:01 +02:00
commit 336ffd9d98
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -165,8 +165,8 @@ class CreateController extends AbstractController
return;
}
// This global variable needs to be reset for the header class to function properly
$table = '';
// Do not display the table in the header since it hasn't been created yet
$this->response->getHeader()->getMenu()->setTable('');
$this->addScriptFiles(['vendor/jquery/jquery.uitablefilter.js', 'indexes.js']);