mirror of
https://github.com/processwire/processwire.git
synced 2025-08-17 20:11:46 +02:00
Fix issue processwire/processwire-issues#66 where deleting item from 2 different repeater fields at same time resulted in only item from first repeater being deleted
This commit is contained in:
@@ -1057,6 +1057,7 @@ class FieldtypeRepeater extends Fieldtype implements ConfigurableModule {
|
||||
}
|
||||
|
||||
if(in_array($operator, array('*=', '~=', '^=', '$=', '%='))) {
|
||||
/** @var DatabaseQuerySelectFulltext $ft */
|
||||
$ft = $this->wire(new DatabaseQuerySelectFulltext($query));
|
||||
$ft->match($table, $subfield, $operator, $value);
|
||||
|
||||
@@ -1221,7 +1222,7 @@ class FieldtypeRepeater extends Fieldtype implements ConfigurableModule {
|
||||
if($value->has($p)) continue;
|
||||
// $this->message("Deleted Repeater", Notice::debug);
|
||||
// delete the repeater page
|
||||
$this->wire('pages')->delete($p);
|
||||
$this->wire('pages')->delete($p, $saveOptions);
|
||||
}
|
||||
|
||||
$result = parent::___savePageField($page, $field);
|
||||
|
Reference in New Issue
Block a user