Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] r311 - registry/trunk/app/Controller

Subject: COmanage Developers List

List archive

[comanage-dev] r311 - registry/trunk/app/Controller


Chronological Thread 
  • From:
  • To:
  • Subject: [comanage-dev] r311 - registry/trunk/app/Controller
  • Date: Sat, 14 Jul 2012 22:49:19 -0400

Author: benno
Date: 2012-07-14 22:49:19 -0400 (Sat, 14 Jul 2012)
New Revision: 311

Modified:
registry/trunk/app/Controller/StandardController.php
Log:
Propagate id on form error in StandardController

Modified: registry/trunk/app/Controller/StandardController.php
===================================================================
--- registry/trunk/app/Controller/StandardController.php 2012-07-15
02:09:28 UTC (rev 310)
+++ registry/trunk/app/Controller/StandardController.php 2012-07-15
02:49:19 UTC (rev 311)
@@ -324,6 +324,13 @@
}

$data = $this->request->data;
+
+ if(!isset($this->request->data[$req]['id'])) {
+ // Make sure ID is available in the request in case the form errors
out and
+ // Cake needs to regenerate the POST target
+
+ $this->request->data[$req]['id'] = $id;
+ }
}

if($this->requires_person)



  • [comanage-dev] r311 - registry/trunk/app/Controller, svnlog, 07/14/2012

Archive powered by MHonArc 2.6.16.

Top of Page