WordPress.org

Support

Support » Plugins and Hacks » User field cannot be repeatable.

User field cannot be repeatable.

Viewing 3 replies - 1 through 3 (of 3 total)
  • In fact, even making the field “not” repeatable would not resolve the problem. Someone?

    Plugin Contributor fireproofsocks

    @fireproofsocks

    Please file this in the bug-tracker: it is a bug. And please: ALWAYS include your version number when talking about issues with any plugin. It makes your requests much easier to respond to.

    For PART of the fix, you can edit line above (1826) of your CCTM.php file. Change the line from this:

    if (!is_array($value)) {

    to this:

    if (is_scalar($value)) {

    … the rest I’m looking into…

    Plugin Contributor fireproofsocks

    @fireproofsocks

    The other part of the fix is inside the fields/user.php file.

    Around line 148, you need to change the code from this:

    $hash['value'] = $o->ID;
    
    foreach ($o as $k => $v) {

    To this:

    $hash['value'] = $o->data->ID;
    
    foreach ($o->data as $k => $v) {
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘User field cannot be repeatable.’ is closed to new replies.