Skip to content

rebuildTree() preg_replace() error #96

Closed
@mmakhno

Description

@mmakhno

Hi!
Thanks for this package :)

When I'm trying to use rebuildTree() method for my $data array I'm getting error:

ErrorException in helpers.php line 740: preg_replace(): Parameter mismatch, pattern is a string while replacement is an array

It works Ok when updating simple array like ['id' => '1], but when array looks like [[ 'id' => 1, 'children' => ['id' => 2]], ['id' => 3 ]] it throws exception.

Maybe somebody can advise me how to solve this problem :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions