Jake Vanderwerf
2026-09-15 01e9a8e40351a87f6548a4f55de842d6f6918ad0
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);
   }
   /**
@@ -392,6 +390,6 @@
    */
   public function rowLabelField(): ?string
   {
      return $this->config['row_label'] ?? null;
      return $this->config['add_label'] ?? null;
   }
}