Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project number module: Tag number != report_number #392

Open
jme-iteratec opened this issue Jan 21, 2025 · 1 comment
Open

Project number module: Tag number != report_number #392

jme-iteratec opened this issue Jan 21, 2025 · 1 comment

Comments

@jme-iteratec
Copy link

First of all: Thanks for the report number generator!

A small bug: The tag added to the project does not reflect the actual report number, when there is a template used with random numbers.

I used this template:
{% now 'y' %}-{% random_number 01 98|stringformat:'02d' %}{{project_number}}{% random_number 0 9|stringformat:'01d' %}
The resulting report number was 25-3792, the tag was 25-6096.

@MWedl
Copy link
Contributor

MWedl commented Jan 21, 2025

Thanks for reporting. The problem is that the project number is formatted twice by rendering the template twice - once for the tag and once for the field - resulting in different random numbers.

We will fix this in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants