developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 13 years ago

Closed 13 years ago

#115 closed bug (fixed)

Expression portant le nom d'une variable de traitement

Reported by: giviz Owned by: laurentj
Priority: normal Milestone: Jelix 1.0beta2
Component: jelix:dao Version: 1.0 beta1
Severity: major Keywords:
Cc: Blocked By:
Blocking: Documentation needed:
Hosting Provider: Php version:

Description

Si on utilise le nom d'une variable de traitement dans une expression à l'intérieur d'une DAO il y a un bug :

<parameter name="q"/>

Donne

$query = $this->_selectClause.$this->_fromClause.$this->_whereClause; $query .=' WHERE c_tagdata.query = '.$this->_conn->quote($q).' ORDER BY c_tagdata.datahits DESC';

Et

<parameter name="query"/> Donne

$query = $this->_selectClause.$this->_fromClause.$this->_whereClause; $query .=' WHERE c_tagdata.query = '.$this->_conn->quote($query).' ORDER BY c_tagdata.datahits DESC';

Donc le $query dans $this->_conn->quote($query) est remplacer par le $query de la ligne précédante.

Change History (2)

comment:1 Changed 13 years ago by laurentj

  • Milestone set to Jelix 1.0beta2
  • Owner set to laurentj
  • Priority changed from low to normal
  • Status changed from new to assigned

comment:2 Changed 13 years ago by laurentj

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.