1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-17 20:11:46 +02:00

Minor adjustments

This commit is contained in:
Ryan Cramer
2016-10-24 04:52:58 -04:00
parent 57fd741232
commit fa1b58c6a2
2 changed files with 3 additions and 1 deletions

View File

@@ -692,6 +692,7 @@ class FieldtypeRepeater extends Fieldtype implements ConfigurableModule {
public function ___exportValue(Page $page, Field $field, $value, array $options = array()) {
$a = array();
if(!WireArray::iterable($value)) return $a;
foreach($value as $k => $p) {
/** @var Page $p */
if($p->isUnpublished()) continue;

View File

@@ -327,7 +327,7 @@ class InputfieldSelect extends Inputfield {
* @return array
*
*/
protected function getOptionAttributes($key) {
public function getOptionAttributes($key) {
if(!isset($this->optionAttributes[$key])) return array();
return $this->optionAttributes[$key];
}
@@ -395,6 +395,7 @@ class InputfieldSelect extends Inputfield {
public function get($key) {
if($key == 'options') return $this->options;
if($key == 'optionAttributes') return $this->optionAttributes;
return parent::get($key);
}