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 7 years ago

Closed 7 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:

Description

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);';
            unset($attributes['xhtml']);
        }

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 7 years ago by laurentj

  • Milestone set to Jelix 1.3.6

comment:2 Changed 7 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 7 years ago by laurentj

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