[Alba-desarrollo] SVN Alba r5044 - in prosistem/alba/trunk/alba/doc: . patchs

commits en pressenter.com.ar commits en pressenter.com.ar
Lun Sep 3 21:56:50 CEST 2007


Author: josx
Date: 2007-09-03 16:56:48 -0300 (Mon, 03 Sep 2007)
New Revision: 5044

Added:
   prosistem/alba/trunk/alba/doc/patchs/
   prosistem/alba/trunk/alba/doc/patchs/LEEME
   prosistem/alba/trunk/alba/doc/patchs/checkbox_radio_array.patch
Log:
Inclui directorio destinado a parches que vamos haciendo a los programas que usamos

Added: prosistem/alba/trunk/alba/doc/patchs/LEEME
===================================================================
--- prosistem/alba/trunk/alba/doc/patchs/LEEME	2007-09-03 17:33:21 UTC (rev 5043)
+++ prosistem/alba/trunk/alba/doc/patchs/LEEME	2007-09-03 19:56:48 UTC (rev 5044)
@@ -0,0 +1,4 @@
+Aqui aparecen todos los parches que no forman parte de los proyectos
+que vamos arreglando. 
+Es necesario parchear las versiones nuevas 
+con estos parches, por ejemplo la del symfony.

Added: prosistem/alba/trunk/alba/doc/patchs/checkbox_radio_array.patch
===================================================================
--- prosistem/alba/trunk/alba/doc/patchs/checkbox_radio_array.patch	2007-09-03 17:33:21 UTC (rev 5043)
+++ prosistem/alba/trunk/alba/doc/patchs/checkbox_radio_array.patch	2007-09-03 19:56:48 UTC (rev 5044)
@@ -0,0 +1,25 @@
+Index: sfFillInForm.class.php
+===================================================================
+--- sfFillInForm.class.php	(revisión: 4922)
++++ sfFillInForm.class.php	(copia de trabajo)
+@@ -116,10 +116,19 @@
+         {
+           // checkbox and radio
+           $element->removeAttribute('checked');
+-          if ($this->hasValue($values, $name) && ($this->getValue($values, $name) == $value || !$element->hasAttribute('value')))
++
++	  if (is_array($this->getValue($values, $name)) && ($this->hasValue($values, $name) || !$element->hasAttribute('value'))) 
++	  {
++	    if (in_array($value, $this->getValue($values, $name))) 
++	    {
++              $element->setAttribute('checked', 'checked');
++	    }
++	  } 
++	  else if ($this->hasValue($values, $name) && ($this->getValue($values, $name) == $value || !$element->hasAttribute('value')))
+           {
+             $element->setAttribute('checked', 'checked');
+           }
++
+         }
+         else
+         {




Más información sobre la lista de distribución Alba-desarrollo