Closed (fixed)
Project:
Inline
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
16 May 2006 at 11:47 UTC
Updated:
2 Sep 2006 at 16:16 UTC
Jump to comment: Most recent file
I have experimented some to get inline work on preview. I found that function _inline_fileobj() returns an object on view put an array on preview. I don't know enough about the inner working of core to know if this is a bug or how it should work.
By adding the line "$file = (object)$file;" to make sure $file is an object inline now works on preview on my site.
Line 226+ inline.module:
$file = _inline_fileobj($node, $value);
// Convert $file to an object, if necessary.
// This makes inline work on preview
$file = (object)$file;
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | inline_make_previews_work.patch.txt | 4.06 KB | Bèr Kessels |
Comments
Comment #1
sunThis is already included in this patch, which also adds
Comment #2
sun@frjo: Did you check the mentioned patch?
Comment #3
frjo commentedYes I did and I borrowed some code for my own hacked version of the inline.module. It was while updating my own version for 4.7 that I found the object/array problem.
http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/frjo/inline47/
Comment #4
Bèr Kessels commentedThis patch makes previews work. (Patch should work against 4.7 too.)
Comment #5
Bèr Kessels commentedFixed and committed in HEAD.
Comment #6
(not verified) commented