Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

groups: Group edit can't handle array group profile fields (Trac #2609) #2609

Closed
elgg-gitbot opened this issue Feb 16, 2013 · 3 comments
Closed
Labels
Milestone

Comments

@elgg-gitbot
Copy link

@elgg-gitbot elgg-gitbot commented Feb 16, 2013

Original ticket http://trac.elgg.org/ticket/2609 on 40841767-05-12 by trac user coldtrick, assigned to cash.

Elgg version: 1.7

The group edit action is not expecting array inputs and will strip those values in the save action.

Profile edit does this correctly by doing the following:

$value = get_input($shortname);
            if (is_array($value)) {
                array_walk_recursive($value, 'profile_array_decoder');
            } else {
                $value = html_entity_decode($value, ENT_COMPAT, 'UTF-8');
            }

This problem occurs when using the Profile Manager plugin and configuring a multiselect group profile field and trying to save that info on the group edit form.

@elgg-gitbot
Copy link
Author

@elgg-gitbot elgg-gitbot commented Feb 16, 2013

Milestone changed to Elgg 1.7.5 by cash on 40842113-08-04

Loading

@elgg-gitbot
Copy link
Author

@elgg-gitbot elgg-gitbot commented Feb 16, 2013

cash wrote on 40858329-03-01

(In [svn:7276]) Fixes #2609 - walking group profile field arrays for encoding

Loading

@elgg-gitbot
Copy link
Author

@elgg-gitbot elgg-gitbot commented Feb 16, 2013

cash wrote on 40858338-08-10

(In [svn:7278]) Refs #2609 - added fix to trunk

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant