Tíquete #10643

[1.0.2]EditFormのprepare
: 2007-07-03 10:34 Última Atualização: 2007-07-13 17:47

Relator:
Dono:
Tipo:
Estado:
Fechado
Componente:
(Nenhum)
Marcos:
(Nenhum)
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
Nenhum

Details

maxlengthチェックに対する、エラーメッセージ登録コード
に、フィールド名が入ってません。

■cubson1.0.2で生成されるコード
$this->mFieldProperties['hoge_name']->addMessage('maxlength',
_MD_FOO_ERROR_MAXLENGTH, '255');

■正
$this->mFieldProperties['hoge_name']->addMessage('maxlength',
_MD_FOO_ERROR_MAXLENGTH, _MD_FOO_LANG_HOGE_NAME, '255');

Ticket History (3/4 Histories)

2007-07-13 16:52 Updated by: minahito
  • Dono Update from (Nenhum) to minahito
2007-07-13 16:56 Updated by: minahito
Comentário
Logged In: YES
user_id=8353

生成源となる設定ファイル .xml の定義を確認していただけないで
しょうか?

<field property="hoge_name" depends="maxlength">
<arg0 key="const._MD_FOO_LANG_HOGE_NAME" />
<arg1 name="maxlength" key="${var:maxlength}" />
<msg name="maxlength" key="const._MD_FOO_ERROR_MAXLENGTH" />
<var name="maxlength" value="255" />
</field>

この <arg0> 定義があればきちんと出ると思うのですが...
2007-07-13 17:26 Updated by: minahito
Comentário
Logged In: YES
user_id=8353

required がないときに arg0 定義が吐かれないのではないか
2007-07-13 17:47 Updated by: minahito
  • Ticket Close date is changed to 2007-07-13 17:47
  • Resolução Update from Nenhum to Fixed
  • Estado Update from Aberto to Fechado

Attachment File List

No attachments

Editar

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login