Closed (fixed)
Project:
Video Embed Field
Version:
7.x-2.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Oct 2011 at 16:25 UTC
Updated:
30 Oct 2012 at 18:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
jec006 commentedSure, I can add a trim in there to fix this problem
Comment #2
jec006 commentedI fixed this here: http://drupal.org/commitlog/commit/25834/55bbc308ad9789bc927e39701d79e69...
You can check the project out from git to get the fix now, or wait for the dev version to rebuild.
Comment #3
dgastudio commentedthank u veru much
Comment #4
mototribe commentedwhen there is a space at the beginning of the video it breaks the video (just shows the link with an invalid internal path).
Hope it's ok to open this old request rather than submitting a new one?
Comment #5
wbobeirne commentedPutting the trim in the validate function doesn't actually do anything, as $items are passed by value there. I've added it to hook_field_presave where the change will actually be reflected in what gets saved. Patch attached.
Comment #6
jec006 commentedCommitted here: http://drupal.org/commitlog/commit/25834/d55014e5cb71cb1d42a8ae81af26179...
Thanks