-
Notifications
You must be signed in to change notification settings - Fork 25
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
fix: use actual providerId in link rows #1443
Conversation
@@ -38,7 +38,7 @@ public function parseValue($value, ?Column $column = null): string { | |||
return json_encode(json_encode([ | |||
'title' => $data['title'] ?? $data['resourceUrl'], | |||
'value' => $data['resourceUrl'], | |||
'providerId' => 'url', | |||
'providerId' => isset($data['providerId']) ? $data['providerId'] : 'url', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dunno if there's a reason why 'url' was hardcoded here instead of just using the providerId like this 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Originates from #779
Does line 30 needs treatment as well?
Shorthand should also do:
'providerId' => isset($data['providerId']) ? $data['providerId'] : 'url', | |
'providerId' => $data['providerId'] ?? 'url', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does line 30 needs treatment as well?
Not sure about both line 30 and 61, since the indices are numeric not strings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me.
1e5e49a
to
8b198be
Compare
Tested with Notes, Tables and Files links and it works |
Signed-off-by: Cleopatra Enjeck M. <patrathewhiz@gmail.com>
/backport to stable0.8 |
fixes #1442
Before
Screencast.from.11-07-2024.03_32_38.AM.mp4
After
Screencast.from.11-07-2024.03_31_51.AM.mp4
TODO: