Good find. Definately needs fixing for the next release. i tried to override the helper by creating concrete/asset_library in my helpers directory and that resulted in white screening.
I'm unable to make the User file attribute work. I see the select file link in the edit user profile but it doesn't do anything when clicked. When I view the public profile it says:
Fatal error: Call to a member function getDownloadURL() on a non-object in /home/outaouai/public_html/concrete/models/attribute/types/image_file/controller.php on line 19
not that it really matters at this point, but when this was put into a singlepage you needed to manually call ccm_activateFileSelectors(camelcase might be wrong there);
so ccm_activateFileSelectors(); in a jquery document ready function.
to be totally honest, i am not sure. My only interactions with this situation are through the blog app(under dashboard so everything under the "concrete5 sun" is loaded there, or through a block add/edit, where again everything is loaded.
I haven't actually loaded these in a standard non-dashboard or block add/edit form so I can't speak from personal experience as to why this wouldn't work aside from making sure the controller that is associated with this single page is loading via its on start method whatever ccm or otherwise js is associated and thus makes available this function.
not necessarily, it depends on if it is under /dashboard/ and this it has an entirely independent header and theme and all of that. That is the scope of my experience with this, haven't dealt outside of this, honestly i haven't looked at profiles..ever :(
in helpers/concrete/asset_library.php
line 49 should be: