Projet

Général

Profil

0001-backoffice-don-t-include-custom-view-part-in-inspect.patch

Frédéric Péters, 26 mai 2020 20:49

Télécharger (1,13 ko)

Voir les différences:

Subject: [PATCH] backoffice: don't include custom view part in inspect URLs
 (#43351)

 wcs/backoffice/management.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
wcs/backoffice/management.py
2704 2704
                (get_publisher().get_backoffice_root().is_accessible('forms') or
2705 2705
                 get_publisher().get_backoffice_root().is_accessible('workflows'))):
2706 2706
            r += htmltext('<div class="extra-context">')
2707
            r += htmltext('<p><a href="inspect">%s</a></p>') % _('Data Inspector')
2707
            r += htmltext('<p><a href="%sinspect">' % formdata.get_url(backoffice=True))
2708
            r += htmltext('%s</a></p>') % _('Data Inspector')
2708 2709
            r += htmltext('</div>')
2709 2710

  
2710 2711
        return r.getvalue()
2711
-