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

Closed 12 years ago

#962 closed bug (fixed)

jForms::getModifiedControls don't return changed controls which contains multiple values

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


getModidifiedControls don't return changed values for <checkboxes>, <listbox> etc. This is because we use array_diff_assoc, and unfortunately, this function doesn't compare values directly, but convert them in to strings before the comparison. And the string representation of an array is "Array"... so for arrays, getModifiedControls doesn't see changes.

we should then use array_udiff_assoc(), and provide our own comparison function...

Change History (1)

comment:1 Changed 12 years ago by laurentj

  • Milestone changed from Jelix 1.0.11 to Jelix 1.1.4
  • Resolution set to fixed
  • Status changed from new to closed
  • Version changed from 1.0.10 to 1.1.3
Note: See TracTickets for help on using tickets.