Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow admin user to export tables upon request despite NoExportExternal
NoExportExternal was intended to ensure automatic products/ exports
don't happen, but we shouldn't stop manual exports to the download
directory.
  • Loading branch information
jonjensen committed Apr 28, 2016
1 parent c40ea9c commit bc1eb7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/UI_Tag/backup_database.coretag
@@ -1,4 +1,4 @@
# Copyright 2002-2009 Interchange Development Group and others
# Copyright 2002-2016 Interchange Development Group and others
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -7,7 +7,7 @@

UserTag backup-database Order tables
UserTag backup-database AddAttr
UserTag backup-database Version 1.11
UserTag backup-database Version 1.12
UserTag backup-database Routine <<EOR
sub {
my ($tables, $opt) = @_;
Expand Down Expand Up @@ -59,6 +59,7 @@ sub {
$fn =~ s:.*/::;
my $file = "$backup_dir/$fn";
my $status;
local $Vend::Cfg->{NoExportExternal} if $opt->{force};
eval {
$status = export(
$table,
Expand Down
1 change: 1 addition & 0 deletions dist/lib/UI/pages/admin/dbdownload.html
Expand Up @@ -23,6 +23,7 @@
xls="[cgi ui_export_xls]"
max_xls_string="[cgi ui_export_max_xls_string]"
tables="[scratch exported_tables]"
force=1
]']%s tables backed up.[/msg]
</BLOCKQUOTE>
[/if]
Expand Down

0 comments on commit bc1eb7e

Please sign in to comment.