Changeset [8d2060493809d6ea33ba04def02b23686c9531b5] by Andrew Ho

July 14th, 2009 @ 11:42 PM

Fixed bug where failed validation would generate an edit form

The bug was that if validation failed on an add() form, then it wouldn't redirect so $this->data would still present. The Form helper would therefore generate an edit-type form, and submit to /controller/edit (which would choke because the row didn't already exist).

The fix is to explicitly define the form action (in the HTML attribute sense of the word "action"). http://github.com/kenners/uamuzi...

Committed by Andrew Ho

  • M www/app/views/groups/add.ctp
  • M www/app/views/patients/add.ctp
  • M www/app/views/tests/add.ctp
  • M www/app/views/users/add.ctp
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A basic HIV Electronic Medical Record (EMR) system using CakePHP.

Shared Ticket Bins