Closed (fixed)
Project:
Upload nodes
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2011 at 11:36 UTC
Updated:
24 Oct 2011 at 18:00 UTC
Jump to comment: Most recent file
Hi there,
I've attached a patch with some small fixed. They resolve the following issues:
- #1289812: Images are saving as .tmp files instead of proper name
- #1300286: Titles are all the same (comment #1)
- Use $form[$key]['#access'] = FALSE instead of unset($form[$key]);
Regarding the option to edit fields after uploading, I found a small bug that deletes all setting when you change a node type.
_upload_nodes_rebuild_targets() did a if (isset($managed_target[$key]['settings'])) where it should be if (isset($managed_target['settings'])), as we're already in for loop (and thus $key is not known).
Solves the notice (http://drupal.org/node/1300286#comment-5080192) too
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | minor_improvements.patch | 24.96 KB | BarisW |
| minor_improvements.patch | 2.87 KB | BarisW |
Comments
Comment #1
BarisW commentedOh, and I removed the PHP closing tags as well. They are not needed in PHP5.
Comment #2
BarisW commentedThis is a better patch. I used the Coder module to make the code reflect the Drupal Coding Guidelines (uses of spacing, escaping, etc). Please use this one.
Comment #3
pyrollo commentedHello,
This patch is now committed !
Comment #4.0
(not verified) commentedLink to http://drupal.org/node/1300286#comment-5080192