Changeset 104885 in spip-zone
- Timestamp:
- Jun 16, 2017, 9:59:24 AM (4 years ago)
- Location:
- _plugins_/hydraulic/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/hydraulic/trunk/hyd_inc/formulaire.abstract.class.php
r104873 r104885 211 211 //On récupère les données 212 212 foreach($tChOblig as $champ) { 213 if(self::DBG) spip_log( $champ.'=>'._request($champ),'hydraulic',_LOG_DEBUG); 213 214 if (_request($champ)!==false){ 214 215 $data[$champ] = _request($champ); … … 225 226 $choix_radio[$cle] = _request('choix_champs_'.$cle); 226 227 } 228 if(self::DBG) spip_log($choix_radio,'hydraulic',_LOG_DEBUG); 227 229 228 230 $data['min'] = 0; … … 264 266 $tCtrl = array(); 265 267 $tData = array(); 268 $sValCal = (isset($this->data['ValCal']))?$this->data['ValCal']:false; 266 269 267 270 foreach($this->saisies as $fs) { 268 271 foreach($fs[1] as $cle=>$val) { 269 $tData[$cle] = (isset($this->data[$cle]))?$this->data[$cle]:999; 270 $tCtrl[$cle] = $val[2]; 272 if($cle != $sValCal) { 273 if(isset($this->data[$cle])) { 274 $tData[$cle] = $this->data[$cle]; 275 } 276 $tCtrl[$cle] = $val[2]; 277 } 271 278 } 272 279 } … … 274 281 $erreurs = array(); 275 282 foreach($tCtrl as $Cle=>$Ctrl) { 276 $tData[$Cle] = trim(str_replace(',','.',$tData[$Cle])); 283 if(isset($tData[$Cle])) { 284 $tData[$Cle] = trim(str_replace(',','.',$tData[$Cle])); 285 } 277 286 if(strpos($Ctrl,'o')!==false & (!isset($tData[$Cle]) | $tData[$Cle]=="")) { 278 287 // Champ obligatoire -
_plugins_/hydraulic/trunk/plugin.xml
r104873 r104885 8 8 <auteur>David Dorchies, Médéric Dulondel</auteur> 9 9 <licence>GNU/GLP</licence> 10 <version>0.11. 5</version>10 <version>0.11.6</version> 11 11 <necessite id="lib:dist" src="http://www.jqplot.com/download/jquery.jqplot.1.0.8r1250.zip" /> 12 12 <slogan>
Note: See TracChangeset
for help on using the changeset viewer.