From 05e306dcb5663495495f4d091f1e3aa13077b4c6 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Mon, 13 Sep 2021 10:29:29 +0000 Subject: [PATCH] fixed flaws in webhooks changes --- codepot/src/codepot/controllers/project.php | 6 +++--- codepot/src/codepot/views/project_edit.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/codepot/src/codepot/controllers/project.php b/codepot/src/codepot/controllers/project.php index d4fd34da..82300072 100644 --- a/codepot/src/codepot/controllers/project.php +++ b/codepot/src/codepot/controllers/project.php @@ -206,10 +206,10 @@ class Project extends CI_Controller 'project_summary', 'summary', 'required|max_length[255]'); $this->form_validation->set_rules ( 'project_description', 'description', 'required'); - $this->form_validation->set_rules ( - 'project_webhooks', 'description', 'required'); //$this->form_validation->set_rules ( - // 'project_commitable', 'commitable', 'alpha'); + // 'project_webhooks', 'webhooks', 'required'); + $this->form_validation->set_rules ( + 'project_commitable', 'commitable', 'alpha'); $this->form_validation->set_rules ( 'project_public', 'public', 'alpha'); $this->form_validation->set_rules ( diff --git a/codepot/src/codepot/views/project_edit.php b/codepot/src/codepot/views/project_edit.php index 8ce30a35..de04ef51 100644 --- a/codepot/src/codepot/views/project_edit.php +++ b/codepot/src/codepot/views/project_edit.php @@ -130,11 +130,11 @@ $this->load->view ( 'rows' => 20, 'cols' => 80 ); - print form_textarea ($xdata); + print form_textarea($xdata); ?>
-j +
@@ -145,7 +145,7 @@ j 'name' => 'project_webhooks', 'value' => set_value ('project_webhooks', $project->webhooks), 'id' => 'project_edit_webhooks', - 'rows' => 20, + 'rows' => 5, 'cols' => 80 ); print form_textarea($xdata);