Skip to content

Commit

Permalink
Fix repeatable regions losing child nodes when created by cms:repeat
Browse files Browse the repository at this point in the history
  • Loading branch information
kksidd committed Jul 24, 2016
1 parent f1efbda commit e1646b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions couch/addons/repeatable/repeatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ function tag_handler( $params, $node ){
$params[] = array( 'lhs'=>'type', 'op'=>'=', 'rhs'=>'__repeatable' );
$params[] = array( 'lhs'=>'hidden', 'op'=>'=', 'rhs'=>'1' );
$params[] = array( 'lhs'=>'schema', 'op'=>'=', 'rhs'=>$custom_params );
$node->children = array();
$TAGS->editable( $params, $node );
$_node = clone $node;
$_node->children = array();
$TAGS->editable( $params, $_node );
}

function show_handler( $params, $node ){
Expand Down

0 comments on commit e1646b7

Please sign in to comment.