Skip to content

Conversation

akemidx
Copy link
Member

@akemidx akemidx commented Jul 17, 2025

Custom Fields have been added to the print all assigned sheet.
Screenshot 2025-07-17 at 5 08 11 PM

Custom fields to display on the print out sheet can be selected on the custom fields page.
Screenshot 2025-07-17 at 5 17 40 PM
Screenshot 2025-07-17 at 5 17 17 PM

Fixes #7839:

@akemidx akemidx requested review from snipe and uberbrady as code owners July 17, 2025 21:26
@snipe snipe changed the title Custom Fields on Print Assigned Fixed #7839: Custom Fields on Print Assigned Aug 11, 2025
@snipe
Copy link
Member

snipe commented Aug 25, 2025

This looks good so far - one thing I'm worried about is that I don't think we're checking to see if a custom field that's been marked as include-able in the print view should be able to see the values of encrypted custom fields.

@akemidx
Copy link
Member Author

akemidx commented Aug 26, 2025

This looks good so far - one thing I'm worried about is that I don't think we're checking to see if a custom field that's been marked as include-able in the print view should be able to see the values of encrypted custom fields.

That makes sense. I think you are right, and I'll look into that.

@akemidx
Copy link
Member Author

akemidx commented Aug 28, 2025

So it does look like I already included to check for encrypted fields on the print out.
practical testing also showed the field was not returned.
line 621 on the UsersController. added a code comment as well to point it out

paginationVAlign: 'both',
queryParams: function (params) {
var newParams = {};
for(var i in params) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this change about?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see, indenting

@snipe
Copy link
Member

snipe commented Oct 6, 2025

I'm not sure why we need a migration here tbh. If we have the column-select already, can we not just add it to there?

@akemidx
Copy link
Member Author

akemidx commented Oct 7, 2025

I'm not sure why we need a migration here tbh. If we have the column-select already, can we not just add it to there?

the migration is adding it as a checkbox option so people can choose to include it on the print out.

@snipe
Copy link
Member

snipe commented Oct 7, 2025

No, I got that part, but the column selector would let you show/hide on the page as well, and we already have a column selector there

@akemidx
Copy link
Member Author

akemidx commented Oct 7, 2025

ah, i see what you are saying. okok

@akemidx
Copy link
Member Author

akemidx commented Oct 8, 2025

Okay, so, I don't think we'd want to do that. My method allows the items to be individually selected, and then presents that to you in the custom fields table. I feel this is better for organization and being able to reference what is and is not shown on the report easier than using the column selector.

If we removed the migration and went for the dropdown column selector, that dropdown can get REALLY gnarly REALLY quickly for any one who has many custom fields.

Additionally, with my method, you can choose if you want to place it on that print out when you create the custom field.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants