Opened 15 years ago
Closed 15 years ago
#898 closed defect (bug) (worksforme)
bp_group_avatar_edit_form() does not execute
Reported by: | mariusooms | Owned by: | johnjamesjacoby |
---|---|---|---|
Milestone: | 1.1 | Priority: | major |
Severity: | Version: | ||
Component: | Keywords: | groups avatar form | |
Cc: | marius@… |
Description
After a group is created and you visit the group admin settings to change the avatar, the upload action does not properly load the bp_group_avatar_edit_form() form. Instead the page just refreshes.
This worked fine in the latest stable version, but seized working after the admin files have been consolidated into one admin.php file.
Change History (4)
#2
@
15 years ago
- Milestone changed from 1.0.4 to 1.1
- Owner set to johnjamesjacoby
- Status changed from new to assigned
This works fine in 1.0.3 and will be fixed in 1.1 when the avatar cropper tool is reworked.
#3
@
15 years ago
The form is missing the attribute related to file uploads.
Add the following in the form attribute and the file upload works:
enctype="multipart/form-data", so:
<form action="<?php bp_group_admin_form_action() ?>" name="group-settings-form" id="group-settings-form" class="standard-form" method="post" enctype="multipart/form-data">
Please verify...is this okay to have specified for the other form admin steps, even though they are not related to file uploads?
If I uncomment the conditional statement in groups.php line 1024 and basicly force load the legacy group-avatar.php file it works. Meaning it must have to do with the new admin.php file?
I hope that helps at all.