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

Closed 14 years ago

#306 closed bug (fixed)

jForms, jDaoBase et clé primaire sur deux champs

Reported by: e-media Owned by:
Priority: high Milestone: Jelix 1.0 RC1
Component: jelix:forms Version: 1.0 beta3
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed:
Hosting Provider: Php version: 5.2

Description (last modified by laurentj)

J'ai essayé d'adapter le crudtuto3 en passant comme id de jForms un tableau de clé (array('ID1','ID2'))

<a href="{jurl 'module~controleur_view',array('id'=>array($record->ID1,$record->ID2))}">voir</a>

et j'ai eut l'erreur suivante :

Illegal offset type in isset or empty lib/jelix/forms/jForms.class.php 71 Illegal offset type in isset or empty lib/jelix/forms/jForms.class.php 51

J'ai donc passé, une concaténation des valeurs de clé et là c'est jDaoBase qui générait une erreur car il attendait un tableau à deux entrées :

array_combine() [<a href='function.array-combine'>function.array-combine</a>]: Both parameters should have an equal number of elements lib/jelix/dao/jDaoBase.class.php 257

Change History (2)

comment:1 Changed 14 years ago by laurentj

  • Component changed from jelix to jelix:forms
  • Description modified (diff)
  • Milestone set to Jelix 1.0
  • Priority changed from normal to high

comment:2 Changed 14 years ago by laurentj

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

Corrigé dans le trunk.

Note: See TracTickets for help on using tickets.