wzh hace 5 años
padre
commit
099dffd992
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      api/application/controllers/Lampcontrol.php

+ 1 - 1
api/application/controllers/Lampcontrol.php

@@ -856,7 +856,7 @@ class Lampcontrol extends Base_Controller {
         $data['projectid'] = $this->input->post('project_id',true);
         $data['number']    = $this->input->post('lamp_no',true);
         $data['section']   = $this->input->post('section',true);
-        $data['address']   = $this->input->post('address',true);
+        $data['address']   = trim($this->input->post('address',true));
         $data['longitude'] = doubleval($this->input->post('longitude',true));
         $data['latitude']  = doubleval($this->input->post('latitude',true));