[Alba-desarrollo] SVN Alba r5444 -
prosistem/alba/trunk/alba/apps/principal/lib
commits en pressenter.com.ar
commits en pressenter.com.ar
Mie Feb 6 21:24:30 CET 2008
Author: hsanchez
Date: 2008-02-06 18:24:30 -0200 (Wed, 06 Feb 2008)
New Revision: 5444
Modified:
prosistem/alba/trunk/alba/apps/principal/lib/sfCustomUniqueValidator.php
Log:
tomo el fk_establecimiento_id de la session
Modified: prosistem/alba/trunk/alba/apps/principal/lib/sfCustomUniqueValidator.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/lib/sfCustomUniqueValidator.php 2008-02-06 18:39:42 UTC (rev 5443)
+++ prosistem/alba/trunk/alba/apps/principal/lib/sfCustomUniqueValidator.php 2008-02-06 20:24:30 UTC (rev 5444)
@@ -37,14 +37,13 @@
$c = new Criteria();
$myClass = strtolower($this->getParameterHolder()->get("class"));
$values = $this->getContext()->getRequest()->getParameter("$myClass");
- $values["fk_establecimiento_id"] = $this->getContext()->getRequest()->getParameter("fk_establecimiento_id");
+ $values["fk_establecimiento_id"] = $this->getContext()->getUser()->getAttribute('fk_establecimiento_id');
//Loop on the fields
for($i = 1; $i <= $nb_fields ; $i++) {
//Retrieve field_$i
$check_param = $this->getParameterHolder()->get("field_$i");
$check_value = $values["$check_param"];
-
//If check value defined
if ($check_value != '') {
//Adding field to the criteria
Más información sobre la lista de distribución Alba-desarrollo