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

Closed 11 years ago

#881 closed bug (fixed)

jForms: in testapp, choice control has not red star although it is required

Reported by: laurentj Owned by:
Priority: normal Milestone: Jelix 1.1.4
Component: jelix:forms Version: 1.1
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

In the simple form of testapp, the control named status has not a red star (which indicate that it is required), although it is apparently required because an error is generated. The bug is perhaps on the form builder, on the generated html code. Or perhaps it is a validation error.

Change History (2)

comment:1 Changed 11 years ago by bballizlife

It seems that it comes fromjFormsControlChoice::check(). If we do not pick any of the items in the choice "task" we enter in the "else" en return a jForms::ERRDATA_INVALID.

But as there's no "required" attribute, this way of doing is not very good.

Maybe we should add a "required" attribute on the choice control and then check if it's true before returning it's invalid.

comment:2 Changed 11 years ago by laurentj

  • Resolution set to fixed
  • Status changed from new to closed

fixed. added support of the required attribute and fixed the check() method. thanks loic.

Note: See TracTickets for help on using tickets.