Menu

#6 <sf.jp> Wizard 1

open
nobody
None
5
2007-10-17
2007-10-17
No

登録日:2007-03-13 12:02
登録者:izayoi (izayoi_iria)

サマリ:
Wizard
たぶんバグだと思われるものを。

1:このテーブルにwizardを使用するとおかしな動作をしま
す。
 CREATE TABLE {prefix}_{dirname}_TestTable(
  test_id int(10) not null auto_increment,
  test_add text,
  primary key (test_id)
 );

2:cubsonからWizardコマンドを使用。
 例)wizard TestTable

3:生成された「forms/TestTableEditForm.class.php」内
48行目: $this->mFieldProperties['test_add']-
>setDependsByArray(array(''));

※array('')となってしまう。

●回避方法
1:「test_add」に「NotNull」制約を入れる(文字数制限で
も可能)
2:「'(シングルクォート)」を削除する。
・修正
48行目: $this->mFieldProperties['test_add']-
>setDependsByArray(array());

テーブルの作り方をしっかりすれば問題ないのですが…
一応、ご報告。

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.