Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update VideoBlock.php #46

Merged
merged 1 commit into from
Sep 30, 2024
Merged

Update VideoBlock.php #46

merged 1 commit into from
Sep 30, 2024

Conversation

Sindoweb
Copy link
Contributor

The method hasMedia does not exist - replaced with hasImage and tested to return true or false.

Description

Checking with hasMedia returns an error:
Call to undefined method Statikbe\FilamentFlexibleContentBlocks\ContentBlocks\VideoBlock::hasMedia()

Replacing this function with hasImage fixes this issue and returns true or false if a placeholder is attached to the video content.

Reason for this change

Bugfix.

The method hasMedia does not exist - replaced with hasImage and tested to return true or false.
@sten sten merged commit 5100690 into statikbe:main Sep 30, 2024
1 check passed
@sten
Copy link
Contributor

sten commented Sep 30, 2024

@Sindoweb Thanks for the fix! Merged and released as v2.1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants