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

Last modified 12 years ago

#618 closed enhancement (fixed)

improve jControllerDaoCrud possibilities

Reported by: bastnic Owned by: bastnic
Priority: normal Milestone: Jelix 1.1 beta 1
Component: jelix:controllers Version: trunk
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

I want to take all benefits of the jFormBase::prepareDaoFromControls method in jControllerDaoCrud.

I use these patchs in all my projects and now in sharecode and jComments. For sharecode, no pb to include a personalized jControllerDaoCrud but for jComments it's stupid.

So a purpose these two new methods.

Attachments (2)

jcontrollerdaocrud.diff (2.4 KB) - added by bastnic 12 years ago.
jcontrollerdaocrud.2.diff (2.4 KB) - added by bastnic 12 years ago.

Download all attachments as: .zip

Change History (8)

Changed 12 years ago by bastnic

Changed 12 years ago by bastnic

comment:1 Changed 12 years ago by bastnic

  • review set to review?
  • Status changed from new to assigned

second version with correct spaces.

please : i really need that :p.

comment:2 Changed 12 years ago by laurentj

  • Type changed from bug to enhancement

comment:3 Changed 12 years ago by bibo

just a quick glance at the patch, i think you're calling _beforeCreate and your method is _beforeSaveCreate. idem for _beforeUpdate.

comment:4 Changed 12 years ago by laurentj

  • review changed from review? to review+

it seems ok for me

comment:5 Changed 12 years ago by bastnic

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

corrected (thanks bibo) and commited.

comment:6 Changed 12 years ago by laurentj

  • Documentation needed unset

Doc is ok in the manual for 1.1.

Note: See TracTickets for help on using tickets.