diff --git a/admin/admin_settings.php b/admin/admin_settings.php
index cb1676f1..116ad69e 100644
--- a/admin/admin_settings.php
+++ b/admin/admin_settings.php
@@ -2127,6 +2127,46 @@ if ( defined('HESK_DEMO') )
+
+
+
+
diff --git a/admin/admin_settings_save.php b/admin/admin_settings_save.php
index 9dec5326..09c92a66 100644
--- a/admin/admin_settings_save.php
+++ b/admin/admin_settings_save.php
@@ -614,6 +614,7 @@ $set['custom-field-setting'] = empty($_POST['custom-field-setting']) ? 0 : 1;
$set['customer-email-verification-required'] = empty($_POST['email-verification']) ? 0 : 1;
$set['html_emails'] = empty($_POST['html_emails']) ? 0 : 1;
$set['use_bootstrap_theme'] = empty($_POST['use_bootstrap_theme']) ? 0 : 1;
+$set['new_kb_article_visibility'] = hesk_checkMinMax( intval( hesk_POST('new_kb_article_visibility') ) , 0, 2, 2);
if ($set['customer-email-verification-required'])
{
@@ -667,7 +668,10 @@ $modsForHesk_settings[\'mailgun_api_key\'] = \''.$set['mailgun_api_key'].'\';
$modsForHesk_settings[\'mailgun_domain\'] = \''.$set['mailgun_domain'].'\';
//-- Set this to 1 to enable bootstrap-theme.css
-$modsForHesk_settings[\'use_bootstrap_theme\'] = '.$set['use_bootstrap_theme'].';';
+$modsForHesk_settings[\'use_bootstrap_theme\'] = '.$set['use_bootstrap_theme'].';
+
+//-- Default value for new Knowledgebase article: 0 = Published, 1 = Private, 2 = Draft
+$modsForHesk_settings[\'new_kb_article_visibility\'] = '.$set['new_kb_article_visibility'].';';
// Write the file
if ( ! file_put_contents(HESK_PATH . 'modsForHesk_settings.inc.php', $modsForHesk_file_content) )
diff --git a/language/en/text.php b/language/en/text.php
index b55da13f..686dc347 100644
--- a/language/en/text.php
+++ b/language/en/text.php
@@ -21,6 +21,12 @@ $hesklang['_COLLATE']='utf8_unicode_ci';
// This is the email break line that will be used in email piping
$hesklang['EMAIL_HR']='------ Reply above this line ------';
+// ADDED OR MODIFIED IN Mods for HESK 2.2.0
+$hesklang['new_article_default_type'] = 'Default Type for New Articles';
+$hesklang['new_article_default_type_help'] = 'Choose the default type for new knowledgebase articles.';
+$hesklang['kb_draft3'] = 'The article is saved but not yet published. It can only be read by staff who has permission to
+ manage knowledgebase articles.'; // This is exactly the same as kb_draft2 with all HTML removed
+
// ADDED OR MODIFIED IN Mods for HESK 2.1.0
$hesklang['e_mfh_settings'] = 'You will not be able to save your settings unless this file is writable by the script (CHMOD to 666)!';
$hesklang['mfh_up_to_date'] = 'Mods for HESK is up to date';
diff --git a/modsForHesk_settings.inc.php b/modsForHesk_settings.inc.php
index 6a5e6e30..77ffd35e 100644
--- a/modsForHesk_settings.inc.php
+++ b/modsForHesk_settings.inc.php
@@ -34,4 +34,7 @@ $modsForHesk_settings['mailgun_api_key'] = '';
$modsForHesk_settings['mailgun_domain'] = '';
//-- Set this to 1 to enable bootstrap-theme.css
-$modsForHesk_settings['use_bootstrap_theme'] = 1;
\ No newline at end of file
+$modsForHesk_settings['use_bootstrap_theme'] = 1;
+
+//-- Default value for new Knowledgebase article: 0 = Published, 1 = Private, 2 = Draft
+$modsForHesk_settings['new_kb_article_visibility'] = 0;
\ No newline at end of file