From 77bad9b9437c68eb833c293c2674fd811fbac725 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Tue, 18 Sep 2018 09:12:44 +1200 Subject: [PATCH] Use getShouldLazyLoad() accesser --- src/TagField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TagField.php b/src/TagField.php index e194188..fc37ab2 100644 --- a/src/TagField.php +++ b/src/TagField.php @@ -216,7 +216,7 @@ class TagField extends DropdownField $this->setAttribute('multiple', 'multiple'); } - if ($this->shouldLazyLoad) { + if ($this->getShouldLazyLoad()) { $this->setAttribute('data-ss-tag-field-suggest-url', $this->getSuggestURL()); } else { $properties = array_merge($properties, array( @@ -268,7 +268,7 @@ class TagField extends DropdownField $titleField = $this->getTitleField(); - if ($this->shouldLazyLoad) { + if ($this->getShouldLazyLoad()) { // only render options that are selected as everything else should be lazy loaded, and or loaded by the form foreach ($values as $value) { $options->push(