From 6c1341b4aee6a54080de8eaa23e8345cfcfad3f0 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 12 Apr 2012 13:15:11 +0200 Subject: [PATCH] When creating a work (folder) active = 1 --- main/work/work.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/main/work/work.php b/main/work/work.php index c9498aa305..e8aa3a72b4 100644 --- a/main/work/work.php +++ b/main/work/work.php @@ -784,13 +784,8 @@ switch ($action) { $form->addElement('checkbox', 'allow_text_assignment', null, get_lang('AllowTextAssignments')); $form->addElement('html', ''); $form->addElement('style_submit_button', 'submit', get_lang('CreateDirectory')); - - + if ($form->validate()) { - - /* - $fexpire = get_date_from_select('expires'); - $fend = get_date_from_select('ends');*/ $directory = Security::remove_XSS($_POST['new_dir']); $directory = replace_dangerous_char($directory); @@ -816,7 +811,7 @@ switch ($action) { title = '".Database::escape_string($_POST['new_dir'])."', description = '".Database::escape_string($_POST['description'])."', author = '', - active = '0', + active = '1', accepted = '1', filetype = 'folder', post_group_id = '".$group_id."',