Skip to content

Commit

Permalink
Fixed fetching the database and table not appearing in query param in…
Browse files Browse the repository at this point in the history
… edit privilege

Signed-off-by: Sachin Bahukhandi <sachinb0013@gmail.com>
  • Loading branch information
SachinBahukhandi committed Mar 9, 2024
1 parent c8654bf commit c619738
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions resources/templates/table/privileges/index.twig
@@ -1,8 +1,9 @@
<div class="container">

{% if is_superuser %}
<h2>
{{ get_icon('b_usrcheck') }}
{{ 'Users having access to "%s"'|trans|format('<a href="' ~ table_url ~ get_common({
{{ 'Users having access to---- "%s"'|trans|format('<a href="' ~ table_url ~ get_common({
'db': db,
'table': table
}, '&') ~ '">' ~ db|escape('html') ~ '.' ~ table|escape('html') ~ '</a>')|raw }}
Expand Down Expand Up @@ -77,8 +78,8 @@
<a class="edit_user_anchor" href="{{ url('/server/privileges', {
'username': privilege.user,
'hostname': privilege.host,
'dbname': priv.database != '*' ? priv.database,
'tablename': priv.table is defined and priv.table != '*' ? priv.table,
'dbname': priv.database != '*' ? priv.database: db,
'tablename': priv.table is defined and priv.table != '*' ? priv.table: table,
'routinename': priv.routine ?? ''
}) }}">
{{ get_icon('b_usredit', 'Edit privileges'|trans) }}
Expand Down

0 comments on commit c619738

Please sign in to comment.