Skip to content

Commit

Permalink
Fix issue processwire/processwire-issues#277 where Inputfield::collap…
Browse files Browse the repository at this point in the history
…sedNever constant didn't work quite right in some cases
  • Loading branch information
ryancramerdesign committed Mar 30, 2018
1 parent deb4488 commit 8cbe05d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wire/core/InputfieldWrapper.php
Expand Up @@ -480,7 +480,7 @@ public function ___render() {
$ffAttrs['class'] .= ' ' . $classes['item_required_if'];
}

if($collapsed) {
if($collapsed && $collapsed !== Inputfield::collapsedNever) {
$isEmpty = $inputfield->isEmpty();
if(($isEmpty && $inputfield instanceof InputfieldWrapper) ||
$collapsed === Inputfield::collapsedYes ||
Expand Down Expand Up @@ -1055,7 +1055,7 @@ public function getAll() {
* #pw-internal
*
* @param bool $trackChanges
* @return $this
* @return Inputfield|InputfieldWrapper
*
*/
public function setTrackChanges($trackChanges = true) {
Expand All @@ -1069,7 +1069,7 @@ public function setTrackChanges($trackChanges = true) {
* #pw-internal
*
* @param bool $trackChanges
* @return $this
* @return Inputfield|InputfieldWrapper
*
*/
public function resetTrackChanges($trackChanges = true) {
Expand Down

0 comments on commit 8cbe05d

Please sign in to comment.