You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please check this video below; some of the values on the repeater field were gone after saving. In the video, I'm using table repeater by awcodes, but the behavior is the same using a regular repeater from filament.
If I add two or more values to the repeater, some of them suddenly disappear when I save them, even though the values exist on the database.
If I hard refresh the page, the missing values are there.
If I hit save twice, the disappearing values are gone forever.
Here's my relationship:
User model
public function organizations(): BelongsToMany
{
return $this->belongsToMany(Organization::class)
->withPivot('role')
->withTimestamps();
}
public function organizationUsers(): HasMany
{
return $this->hasMany(OrganizationUser::class);
}
Organization model
public function users(): BelongsToMany
{
return $this->belongsToMany(User::class)
->using(OrganizationUser::class)
->withTimestamps();
}
public function organizationUsers(): HasMany
{
return $this->hasMany(OrganizationUser::class);
}
OrganizationUser model
protected $table = 'organization_user';
protected $fillable = [
'organization_id',
'user_id',
'role',
];
public function organization(): BelongsTo
{
return $this->belongsTo(Organization::class);
}
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
Package
filament/filament
Package Version
v3.2
Laravel Version
v11
Livewire Version
v3
PHP Version
PHP 8.2
Problem description
Please check this video below; some of the values on the repeater field were gone after saving. In the video, I'm using table repeater by awcodes, but the behavior is the same using a regular repeater from filament.
https://drive.google.com/file/d/1rGgK6WKkoDUa3LxGKgwDXvvw6rS2T3iw/view?usp=sharing
Here's my relationship:
User model
Organization model
OrganizationUser model
Here's the repeater field:
it works if I'm using the following code:
Expected behavior
The repeater values should not be gone after save.
Steps to reproduce
Reproduction repository (issue will be closed if this is not valid)
https://github.com/silverhand7/previsible-crm
Relevant log output
The text was updated successfully, but these errors were encountered: