On a flexible field, with no specific casting (or with a Whitecube\NovaFlexibleContent\Value\FlexibleCast cast),
when we use the Nova Actionable trait on a model, the Flexible field value is considered as dirty even without modification.
This seems to be due to HasFlexible::cast() which returns a Collection while Model::getOriginal() returns the raw value :
Another issue relative to https://github.com/whitecube/nova-flexible-content/issues/275
On a flexible field, with no specific casting (or with a
Whitecube\NovaFlexibleContent\Value\FlexibleCast
cast),when we use the Nova
Actionable
trait on a model, the Flexible field value is considered as dirty even without modification.This seems to be due to
HasFlexible::cast()
which returns a Collection whileModel::getOriginal()
returns the raw value :$model->getDirty()
$model->getOriginal() ... should also return a Collection unlike getRawOriginal()
If the flexible field is casted as "collection", it works.