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
$this->meta('related_project');
$projects = $this->meta('related_project', [
'transform_value' => true,
]);
// Projects is still now an array instead of id's
Actual behavior
When a field value is already fetched it will not transform anymore.
Levdbas
changed the title
[BUG] Timber\CoreEntity::fetch_meta transform_value gets overwrittenm my filter.
[BUG] Timber\CoreEntity::fetch_meta transform_value gets overwritten by filter.
Dec 19, 2023
Levdbas
changed the title
[BUG] Timber\CoreEntity::fetch_meta transform_value gets overwritten by filter.
[BUG] Cannot transform meta data when data is already fetched before.
Apr 10, 2024
Levdbas
changed the title
[BUG] Cannot transform meta data when data is already fetched before.
[BUG] Cannot transform meta field value when field is already fetched before.
Apr 10, 2024
Expected Behavior
Actual behavior
When a field value is already fetched it will not transform anymore.
Steps to reproduce behavior
$date = $this->meta('start_date)
before that lineNotes
Not sure if we want to fix this, but we must at least document this behaviour if we are not going to change it.
What version of Timber are you using?
2.0.0
What version of WordPress are you using?
6.4.2
What version of PHP are you using?
8.1
How did you install Timber?
Installed or updated Timber through Composer
The text was updated successfully, but these errors were encountered: