Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted January 31Jan 31 Hello,It's have problem with Extra fields on Downloads app when i upgrading to Version 4.7.20. It's doesnt display when i add a file on Downloads appDoes anyone meet this case on me?Regards
January 31Jan 31 It has permission now:DownloadsImplemented support for permissions on Custom Fields.Added custom fields to the Downloads API responses.I didn’t use it yet but it is probably the reason why it isn’t showing up.
January 31Jan 31 I cant see any issues my end. Please check both the following1 - for the field in question, the permissions are set on that field correctly2 - the field is question is selected as an extra field to be used in the downloads category
January 31Jan 31 @Marc I just upgraded a test site to 4.7.20 and this is what's happening:Existing custom fields are visible/usable to all, but the new 4.7.20 version adds a permission check.The upgrade code does NOT add permission rows for the existing fields to enable the add/edit permission for all groups.You have to edit the field in ACP to update the permissions.With the permissions updated the fields show again in the add/edit form.There is no upgrade code to insert the permissions for the existing fields anywhere. The upgrade should add permissions rows for everyone to add/edit the fields to keep it compatible with the pre-upgrade setup. Post upgrade only the view permission is enabled for all groups. 👀
January 31Jan 31 26 minutes ago, teraßyte said:@Marc I just upgraded a test site to 4.7.20 and this is what's happening:Existing custom fields are visible/usable to all, but the new 4.7.20 version adds a permission check.The upgrade code does NOT add permission rows for the existing fields to enable the add/edit permission for all groups.You have to edit the field in ACP to update the permissions.With the permissions updated the fields show again in the add/edit form.There is no upgrade code to insert the permissions for the existing fields anywhere. The upgrade should add permissions rows for everyone to add/edit the fields to keep it compatible with the pre-upgrade setup. Post upgrade only the view permission is enabled for all groups. 👀Excellent, thank you for that
January 31Jan 31 2 hours ago, teraßyte said:@Marc I just upgraded a test site to 4.7.20 and this is what's happening:Existing custom fields are visible/usable to all, but the new 4.7.20 version adds a permission check.The upgrade code does NOT add permission rows for the existing fields to enable the add/edit permission for all groups.You have to edit the field in ACP to update the permissions.With the permissions updated the fields show again in the add/edit form.There is no upgrade code to insert the permissions for the existing fields anywhere. The upgrade should add permissions rows for everyone to add/edit the fields to keep it compatible with the pre-upgrade setup. Post upgrade only the view permission is enabled for all groups. 👀I'll do some tests next week, but there is one in applications/downloads/setup/upg_107795/upgrade.php
January 31Jan 31 12 minutes ago, Daniel F said:I'll do some tests next week, but there is one in applications/downloads/setup/upg_107795/upgrade.phpOps, I see the problem. I was looking at the 5.0.0 files which don't have that folder yet. 🤦♂️The code is indeed there, but the permissions are missing as visible in the opentype's screenshot above. I had the same situation right after the upgrade when I edited a field permissions.
January 31Jan 31 Yes, the code is faulty. I have fixed this and we'll probably patch this on Monday, but the fix isn't retroactive, so anybody who upgrades in the meanwhile will need to set the permissions manually.