fix: image profile field edit errors
This commit is contained in:
parent
47649c4401
commit
feb82c6d4b
3 changed files with 6 additions and 2 deletions
|
|
@ -44,6 +44,8 @@
|
|||
- Added User Invitations (Funded by United Knowledge)
|
||||
- fix: Calendar Event import ignores time zone
|
||||
http://www.webgui.org/bugs/tracker/calendar-feed-shows-wrong-time
|
||||
- fix: Image profile fields edit issues
|
||||
http://www.webgui.org/bugs/tracker/user-profile-images-disappear-after-updat
|
||||
|
||||
|
||||
7.3.19
|
||||
|
|
|
|||
|
|
@ -451,7 +451,7 @@ sub www_editUserSave {
|
|||
# Loop through all profile fields, and update them with new values.
|
||||
foreach my $field (@{WebGUI::ProfileField->getFields($session)}) {
|
||||
next if $field->getId =~ /contentPositions/;
|
||||
$u->profileField($field->getId,$field->formProcess);
|
||||
$u->profileField($field->getId,$field->formProcess($u));
|
||||
}
|
||||
|
||||
# Update group assignements
|
||||
|
|
|
|||
|
|
@ -255,7 +255,9 @@ Returns the value retrieved from a form post.
|
|||
|
||||
sub formProcess {
|
||||
my $self = shift;
|
||||
my $result = $self->session->form->process($self->getId,$self->get("fieldType"),WebGUI::Operation::Shared::secureEval($self->session,$self->get("dataDefault")), $self->_formProperties);
|
||||
my $u = shift || $self->session->user;
|
||||
my $properties = $self->_formProperties({value => $u->profileField($self->getId)});
|
||||
my $result = $self->session->form->process($self->getId,$self->get("fieldType"),WebGUI::Operation::Shared::secureEval($self->session,$self->get("dataDefault")), $properties);
|
||||
if (ref $result eq "ARRAY") {
|
||||
my @results = @$result;
|
||||
for (my $count=0;$count<scalar(@results);$count++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue