This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "quickfw".
The branch, master has been updated
via 4a25eef48e26b6f8256928aaf84925f1f7b0697f (commit)
from 255366db2a8070327209fadfb4a20c8a4c191d3b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4a25eef48e26b6f8256928aaf84925f1f7b0697f
Author: Ivan1986 <iva...@li...>
Date: Thu Apr 29 12:15:37 2010 +0400
Обработка потери сесии при редактировании зависимой таблицы
diff --git a/lib/Modules/Scafold/Fields.php b/lib/Modules/Scafold/Fields.php
index b0c7d43..c3b85d4 100644
--- a/lib/Modules/Scafold/Fields.php
+++ b/lib/Modules/Scafold/Fields.php
@@ -191,6 +191,12 @@ class Scafold_Parent extends Scafold_Field
{
return $_SESSION['scafold'][$this->table]['parent'];
}
+
+ public function validator($id, $value)
+ {
+ //если у нас будет потеря сессии, то случится фигня
+ return isset($_SESSION['scafold'][$this->table]['parent']);
+ }
public function filterForm($session)
{
-----------------------------------------------------------------------
Summary of changes:
lib/Modules/Scafold/Fields.php | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
hooks/post-receive
--
quickfw
|