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 7833f01427ce29bd4b207d91ec6ad4ce733ef538 (commit)
from b27c22f5fbf5503dc61a0ad1185619d9044569fc (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 7833f01427ce29bd4b207d91ec6ad4ce733ef538
Author: Ivan1986 <iva...@li...>
Date: Thu May 27 11:54:20 2010 +0400
Исправлена ошибка в checkbox в скафолдинге
diff --git a/lib/Modules/Scafold/Fields.php b/lib/Modules/Scafold/Fields.php
index 2f4f056..fd7a874 100644
--- a/lib/Modules/Scafold/Fields.php
+++ b/lib/Modules/Scafold/Fields.php
@@ -361,7 +361,8 @@ class Scafold_Checkbox extends Scafold_Field
public function editor($id, $value)
{
return '<input type="hidden" name="data['.$this->name.']" value="0" />
- <input type="checkbox" name="data['.$this->name.']" value="1" label="'.$this->title.'" />';
+ <input type="checkbox" name="data['.$this->name.']" value="1" label="'.$this->title.'"
+ default="'.($value?'checked':'').'" />';
}
}
@@ -405,7 +406,8 @@ class Scafold_File extends Scafold_Field
{
return '<input type="file" name="file['.$this->name.']" />
<input type="hidden" name="data['.$this->name.']" value="0" />
- <input type="checkbox" name="data['.$this->name.']" value="1" label="Удалить" />';
+ <input type="checkbox" name="data['.$this->name.']" value="1" label="Удалить" /> '.
+ $this->display($id, $value);
}
public function validator($id, $value)
-----------------------------------------------------------------------
Summary of changes:
lib/Modules/Scafold/Fields.php | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
hooks/post-receive
--
quickfw
|