Jake Vanderwerf
2026-08-30 87237f15618e2320967b9380c360b89f7323d2e9
inc/meta/Repeater.php
@@ -25,7 +25,7 @@
      $this->meta = $meta;
      $this->name = $name;
      $this->data = $meta->get($name) ?: [];
      $this->config = $meta->config($name) ?? [];
      $this->config = $meta->getFieldConfig($name) ?? [];
      // Ensure data is array
      if (!is_array($this->data)) {
@@ -111,16 +111,14 @@
   /**
    * Set field value in specific row
    */
   public function setField(int $index, string $field, mixed $value): self
   public function setField(int $index, string $field, mixed $value):bool
   {
      if (!isset($this->data[$index])) {
         $this->data[$index] = [];
      }
      $this->data[$index][$field] = $value;
      $this->sync();
      return $this;
      return $this->sync();
   }
   /**
@@ -374,9 +372,9 @@
   /**
    * Sync data back to Meta instance
    */
   protected function sync(): void
   protected function sync(): bool
   {
      $this->meta->set($this->name, $this->data);
      return $this->meta->set($this->name, $this->data);
   }
   /**