allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [2/2] git commit: [#7351] convert export_controlled to bool before comparing to current value
Date Wed, 28 May 2014 01:51:11 GMT
[#7351] convert export_controlled to bool before comparing to current value


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/75faddba
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/75faddba
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/75faddba

Branch: refs/heads/master
Commit: 75faddbaeb0c5c08766e3235197a51fc8667ff0a
Parents: 31250bd
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Tue Apr 29 21:56:48 2014 +0000
Committer: Cory Johns <johnsca@gmail.com>
Committed: Tue May 27 21:50:19 2014 -0400

----------------------------------------------------------------------
 Allura/allura/ext/admin/admin_main.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/75faddba/Allura/allura/ext/admin/admin_main.py
----------------------------------------------------------------------
diff --git a/Allura/allura/ext/admin/admin_main.py b/Allura/allura/ext/admin/admin_main.py
index e889b29..07b27a5 100644
--- a/Allura/allura/ext/admin/admin_main.py
+++ b/Allura/allura/ext/admin/admin_main.py
@@ -445,12 +445,13 @@ class ProjectAdminController(BaseController):
             h.log_action(log, 'change project moved to url').info('')
             M.AuditLog.log('change project moved to url to %s', moved_to_url)
             c.project.moved_to_url = moved_to_url
+        export_controlled = asbool(export_controlled)
         if export_controlled != c.project.export_controlled:
             h.log_action(
                 log, 'change project export controlled status').info('')
             M.AuditLog.log(
                 'change project export controlled status to %s', export_controlled)
-            c.project.export_controlled = not not export_controlled
+            c.project.export_controlled = export_controlled
             if not export_controlled:
                 export_control_type = None
         if export_control_type != c.project.export_control_type:


Mime
View raw message