The export routine should replace the list of the rules, or set rules with a sentence saying "There are no rules to export", i.e.; empty lists are not rendered well in some browsers.

Comments

mitchell’s picture

Version: 6.x-1.0-beta1 » 6.x-1.x-dev
Component: Code » User interface
Category: task » bug
Status: Active » Postponed (maintainer needs more info)

I just checked this out with the 6.x-1.x-dev release. Since there will always be the default example, I don't think ti's possible for list to be empty.

Marking as needs more info in case I'm missing something.

avpaderno’s picture

Status: Postponed (maintainer needs more info) » Active

In the copy of the module I run in my web site, I removed the example rules, and I noticed the list of the rules doesn't show anything, when the list is empty.

mitchell’s picture

Status: Active » Fixed

Then you have an old version; and given my explanation of recent development, this issue is no longer a problem. Marking as fixed.

Please reopen this issue if this bug still reappears in the latest release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

fago’s picture

Status: Closed (fixed) » Active
fago’s picture

Issue tags: +rules 1.0

nt

fago’s picture

Status: Active » Fixed

fixed + added the possibility to export by categories.

jcmarco’s picture

Status: Fixed » Needs work

If there are no categories created there is an warning when trying to export:
warning: array_filter() [function.array-filter]: The first argument should be an array in /xxxxxxxxxxxxxxxxx/sites/all/modules/rules/rules_admin/rules_admin.export.inc on line 175.

if ($tags_to_export = array_filter($form_state['values']['export_by_tag'])) {

fago’s picture

Status: Needs work » Fixed

oh, thanks. fixed.

Status: Fixed » Closed (fixed)
Issue tags: -rules 1.0

Automatically closed -- issue fixed for 2 weeks with no activity.