From f6b4c30fd31040b4d55df20ca838ad2838983f46 Mon Sep 17 00:00:00 2001 From: "chencongzhi520@gmail.com" Date: Wed, 27 Feb 2013 02:54:49 +0000 Subject: [PATCH] * finish task#1127. --- module/company/model.php | 2 ++ module/company/view/edit.html.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/module/company/model.php b/module/company/model.php index 5370549c3d..5c900bc15b 100644 --- a/module/company/model.php +++ b/module/company/model.php @@ -99,6 +99,8 @@ class companyModel extends model public function update() { $company = fixer::input('post')->stripTags('name')->get(); + if($company->website == 'http://') $company->website = ''; + if($company->backyard == 'http://') $company->backyard = ''; $companyID = $this->app->company->id; $this->dao->update(TABLE_COMPANY) ->data($company) diff --git a/module/company/view/edit.html.php b/module/company/view/edit.html.php index a86c3eb03f..a2ba360fa4 100644 --- a/module/company/view/edit.html.php +++ b/module/company/view/edit.html.php @@ -36,11 +36,11 @@ company->website;?> - + website ? $company->website : 'http://', "class='text-1'");?> company->backyard;?> - + backyard ? $company->backyard : 'http://', "class='text-1'");?> company->pms;?>