mirror of
https://github.com/processwire/processwire.git
synced 2025-08-14 18:55:56 +02:00
Update for processwire/processwire-issues#408 InputfieldSelector count() to wireCount()
This commit is contained in:
@@ -5,7 +5,6 @@ $gridMargin: 0 0.6em 0.6em 0;
|
|||||||
$itemPadding: 0.4em;
|
$itemPadding: 0.4em;
|
||||||
$focusPointCircleSize: 40px;
|
$focusPointCircleSize: 40px;
|
||||||
|
|
||||||
|
|
||||||
.InputfieldImage {
|
.InputfieldImage {
|
||||||
.InputfieldHeader {
|
.InputfieldHeader {
|
||||||
.InputfieldImageListToggle {
|
.InputfieldImageListToggle {
|
||||||
|
@@ -779,7 +779,7 @@ class InputfieldSelector extends Inputfield implements ConfigurableModule {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$limitSubfields = null; // becomes $limitField indexed array of subfield names when applicable
|
$limitSubfields = null; // becomes $limitField indexed array of subfield names when applicable
|
||||||
if(count($this->limitFields)) {
|
if(wireCount($this->limitFields)) {
|
||||||
$limitSubfields = array();
|
$limitSubfields = array();
|
||||||
foreach($this->limitFields as $limitField) {
|
foreach($this->limitFields as $limitField) {
|
||||||
$settings['limitFields'][$limitField] = $limitField;
|
$settings['limitFields'][$limitField] = $limitField;
|
||||||
|
Reference in New Issue
Block a user