QR codes are not appearing in the "Issue cards" standard template when the Internet connection is off

The current guide will teach you how to solve the disappearing QR codes problem when you turn off your Internet connection.

Description of the problem

The problem appears to the Issue cards predefined Reporter plugin template. It is free for using and could be downloaded from here (in the bottom of the page). The template itself looks like this:

issue_cards_template.png

Everything is working fine until you turn off your Internet connection and try to export the issues while you are offline. Then the QR codes are not appearing in the report.

no_qr_code_no_internet.png

Solution

Actually, it is not a bug. The error happens because we use external (non-Redmine) JS in the template. If you use Redmine offline and still would like the QR codes to be visible in your reports, then please do the below steps:

Download

You need to download two JS files:

Copy

Copy the downloaded files to redmine/public/javascripts/ folder.

Change

Change urls in template:

  • https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js ---> https://REDMINE_URL/javascripts/jquery.min.js
  • https://cdnjs.cloudflare.com/ajax/libs/jquery.qrcode/1.0/jquery.qrcode.min.js ---> https://REDMINE_URL/javascripts/jquery.qrcode.min.js

Apply the changes

Thereafter, the server will use local files instead of CDN and should display the QR codes correctly without an Internet connection.

Was this article helpful? Yes  No
412 from 450 found this helpful