Commits ------- 03fee4f Fix permissions 431460f [Form] Remove choice or choice_list requirement as the following conditions already check enough and this condition prevents empty select forms (populated by ajax for example) Discussion ---------- [Form] Choice fix [Form] Remove choice or choice_list requirement as the following conditions already check enough and this condition prevents empty select forms (populated by ajax for example) --------------------------------------------------------------------------- by stloyd at 2011/07/05 06:26:36 -0700 You should revert permission changes. --------------------------------------------------------------------------- by fabpot at 2011/07/05 06:28:14 -0700 Why not replacing `if (!$options['choices'] && !$options['choice_list']) {` by `if (!isset($options['choices']) && !isset($options['choice_list'])) { `? --------------------------------------------------------------------------- by beberlei at 2011/07/05 06:35:50 -0700 gnaa permission changes, i cant seem to configure my machine such that it does not do it, i have to do this on a per repository basis, very annoying. @fabpot isset() is already guaranteed because these two options are in the defaults. --------------------------------------------------------------------------- by beberlei at 2011/07/05 06:39:43 -0700 Fixed the permissions --------------------------------------------------------------------------- by stof at 2011/07/05 06:48:37 -0700 @beberlei Can't you fix it in the global git config ? --------------------------------------------------------------------------- by webda2l at 2011/07/05 09:48:58 -0700 I met the same problem this afternoon and vote for the isset solution. Better than nothing and work for me. https://github.com/symfony/symfony/pull/1539 --------------------------------------------------------------------------- by stof at 2011/07/05 09:50:09 -0700 @webda2l why is a check that always return true better than nothing ? It adds overhead without adding any value in the code.
|
|||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
|
|||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|