1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-14 10:45:54 +02:00

Update the Inputfield debug mode toggle-icon hover state to also work with InputfieldFieldset types

This commit is contained in:
Ryan Cramer
2020-11-27 08:33:01 -05:00
parent 8248e75157
commit 13cb795c3d
3 changed files with 8 additions and 5 deletions

View File

@@ -1314,7 +1314,7 @@ class InputfieldWrapper extends Inputfield implements \Countable, \IteratorAggre
* #pw-group-retrieval-and-traversal
*
* @param array $options Options to modify behavior (3.0.169+)
* - `getWrappers` (bool): Also include InputfieldWrapper objects? (default=false) 3.0.169+
* - `withWrappers` (bool): Also include InputfieldWrapper objects? (default=false) 3.0.169+
* @return InputfieldWrapper
*
*/
@@ -1322,7 +1322,7 @@ class InputfieldWrapper extends Inputfield implements \Countable, \IteratorAggre
$all = $this->wire(new InputfieldsArray());
foreach($this->children() as $child) {
if($child instanceof InputfieldWrapper) {
if(!empty($options['getWrappers'])) $all->add($child);
if(!empty($options['withWrappers'])) $all->add($child);
foreach($child->getAll($options) as $c) {
$all->add($c);
}