Bug in ...field/class.upload.php?

15 views
Skip to first unread message

agnul

unread,
Jul 8, 2008, 10:02:28 AM7/8/08
to Docebo users and developers
Hi,

In our docebo installation we've added a few custom fields to the
teacher's profiles. One of those is an upload field, allowing to
upload a cv file. When I look at the teacher profile I would expect
the link next to the "browse" button to point to the uploaded file if
any, but instead I get a 404. The URL I have is

.../doceboCore/
fo=special&type_field=upload&id_user=20427&id_common=19

I guess something is missing between "doceboCore" and "fo=special",
and looking at the code I guess that getUrl() for upload fields
returns an empty string. This could be because setUrl() is never
called when creating fields via "eval ('return new...')" in
lib.field.php. Any idea how to fix that?

Thanks in advance.
A.

Fabio Pirovano

unread,
Jul 9, 2008, 4:33:04 AM7/9/08
to doc...@googlegroups.com
Hi Agnul,
i have fixed this some time ago, i think that the attached file is
the only thing that i have modify in order to fix this

put it in : doceboCore/modules/field/

Cya,
Fabio


agnul ha scritto:

> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.138 / Virus Database: 270.4.6/1539 - Release Date: 07/07/2008 18.35
>
>
>
>


--
Fabio Pirovano

Docebo SRL - The open source e-learning company
Tel. +39 039-2323286
Fax +39 039-3309936
http://www.docebo.com

class.upload.php

agnul

unread,
Jul 15, 2008, 7:02:04 AM7/15/08
to Docebo users and developers
Thanks!

that fixed the problem, but now I'm experiencing some inconsistent
behavior... I can upload and download file all right when using the
administration panel, but accessing the user profile via the "my
profile" link I get the wrong URL for uploaded files. What I get is

.../doceboLms/index.php?modname=field&op=manage...

while I think I should be getting

.../doceboCore/index.php?modname=field&op=manage...

What's wrong? Did I need to copy the fixed class.upload.php file into
docemoLms too?

Thanks in advance,
Angelo.
Reply all
Reply to author
Forward
0 new messages