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

Opened 9 years ago

Closed 9 years ago

#1496 closed bug (fixed)

problem with generateHtmleditor when xhtml attribute is not true

Reported by: Arnall Owned by:
Priority: normal Milestone: Jelix 1.2.12
Component: jelix:forms Version: 1.3.4
Severity: normal Keywords: jDatatypeHtml
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:


when using a form :

<htmleditor ref="contenu" rows="50" cols="131" required="true" xhtml="false">

the xhtml attribute is parsed by the generateHtmleditor in jFormsCompiler_jf_1_1.class.php :

protected function generateHtmleditor(&$source, $control, &$attributes) {
        if (isset($attributes['xhtml'])) {
            $source[] = '$ctrl->datatype= new jDatatypeHtml('.($attributes['xhtml'] == 'true'?'true':'').', true);';

it generates :

$ctrl->datatype= new jDatatypeHtml(,true)

when xhtml is not true

and then an error :

Parse error: syntax error, unexpected ',', expecting ')'

Change History (3)

comment:1 Changed 9 years ago by laurentj

  • Milestone set to Jelix 1.3.6

comment:2 Changed 9 years ago by laurentj

  • Milestone changed from Jelix 1.3.6 to Jelix 1.2.12
  • Status changed from new to confirmed

comment:3 Changed 9 years ago by laurentj

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