From 1115de0ad043896871816f12c3aec718c4e5575a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 30 Mar 2014 18:03:28 -0400 Subject: [PATCH] Fix saving settings. * Use ng-if instead of ng-show so that multiple fields are not created. * Rebuild the settings cache after save. * Upgrade to AngularJS 1.2.15. --- admin/settings.php | 3 +++ admin/templates/admin_header.tpl | 4 ++-- admin/templates/admin_settings.tpl | 6 +++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/admin/settings.php b/admin/settings.php index b2a0e40..7ccce47 100644 --- a/admin/settings.php +++ b/admin/settings.php @@ -25,6 +25,7 @@ use \bugdar; use \hoplite\http; require_once HOPLITE_ROOT . '/http/action.php'; +require_once BUGDAR_ROOT . '/includes/functions_datastore.php'; class SettingsAction extends http\Action implements TemplatePreCaching { @@ -52,6 +53,8 @@ class SettingsAction extends http\Action implements TemplatePreCaching (varname, value) VALUES " . implode(', ', $query_bits)); $query->Execute($values); + + build_settings(); } } } diff --git a/admin/templates/admin_header.tpl b/admin/templates/admin_header.tpl index 43f237b..5fa713f 100644 --- a/admin/templates/admin_header.tpl +++ b/admin/templates/admin_header.tpl @@ -5,7 +5,7 @@ Bugdar2 {%=T('Administration')%} - {%= $title %} - + - \ No newline at end of file + diff --git a/admin/templates/admin_settings.tpl b/admin/templates/admin_settings.tpl index eb9bc69..8cfdf0a 100644 --- a/admin/templates/admin_settings.tpl +++ b/admin/templates/admin_settings.tpl @@ -10,7 +10,7 @@ {{description}} - + @@ -18,11 +18,11 @@ - + - + -- 2.43.5