Merge pull request #316 from wvengen/feature/disable_config_validation

disable config validation (closes foodcoops#313)
This commit is contained in:
wvengen 2014-10-09 09:45:53 +02:00
commit 9e7b2321cd
3 changed files with 3 additions and 7 deletions

View file

@ -1,6 +1,7 @@
- title t('admin.configs.tabs.title'), false
= simple_form_for :config, method: :patch do |f|
-# disable validations, because browsers can't handle inputs hidden in another tab
= simple_form_for :config, method: :patch, html: {novalidate: true} do |f|
= render 'tabs', url: nil

View file

@ -225,6 +225,7 @@ class FoodsoftConfig
currency_unit: '€',
currency_space: true,
foodsoft_url: 'https://github.com/foodcoops/foodsoft',
contact: {}, # avoid errors when undefined
# The following keys cannot, by default, be set by foodcoops themselves.
protected: {
multi_coop_install: true,

View file

@ -8,13 +8,7 @@ default: &defaults
multi_coop_install: false
default_scope: 'f'
name: FC Minimal
contact:
email: fc@minimal.test
# required by configuration form (but otherwise not)
homepage: http://www.minimal.test/
# true by default to keep compat with older installations, but test with false here
use_nick: false