Posted by Alan D. on June 7, 2012 at 3:28am
8 followers
| Project: | Feeds |
| Version: | 7.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I'm not sure if you want to customise the exports, but not all installations have filter format of ID 1.
<?php
- $handler->display->display_options['empty']['area']['format'] = '1';-
+ $handler->display->display_options['empty']['area']['format'] = variable_get('filter_default_format', 1);
?>
Comments
#1
Format IDs are no longer numeric in Drupal 7 (#934050: Change format into string). I think the default views should be updated anyway since Views is no longer in alpha - arguments are contextual filters now, for example. I re-exported the default views (running Views 7.x-3.3), and removed the text format of 1 from the revised export (Views can figure out the format). I didn't do any other massaging of the exported view other than adding a human name of "Feeds log".
This export also adds items to the $translatables array, that seems to be new as well.
#2
Actually, without this change, the empty text is not displayed at all when visiting node/%/log - so it's not just a watchdog error.
#3
Patch makes sense.
Do we also need a .install file update_N() routine to update the views?
#4
The $translatables is a Features thing, not a views export thing.
There are some other changes between views-3.0-alpha1 and views-3.0. If we're changing the version, I think we should take those along as well.
If you take the current feeds_log view and open/save every item/setting and then export the view, it shows a couple more differences.
#5
Thanks @JvE. The patch looks good, I tested it using the minimal install profile.
Without the patch, no empty text is shown and a watchdog error is logged. After applying the patch and clearing the cache, the empty text is shown and there are no watchdog errors.
Before:

After:

#6
http://drupalcode.org/project/feeds.git/commit/3cf2de4
#7
Automatically closed -- issue fixed for 2 weeks with no activity.