Welcome Guest, Not a member yet? Register   Sign In
Form Validation - set_value() working differently in v3
#10

(This post was last modified: 05-03-2015, 10:26 AM by Narf.)

(05-03-2015, 10:14 AM)sparky672 Wrote:
(05-03-2015, 10:04 AM)Narf Wrote: You don't have the same problem as the OP did.

Yet the steps to reproduce are the same.


No, they are not. You're using an array notation field name, with a specific index.

(05-03-2015, 10:14 AM)sparky672 Wrote:
(05-03-2015, 10:04 AM)Narf Wrote: It's not designed to work like you want it to.

Like I want?  I'm only asking about the behavior that we had in version 2, that's now missing from v3.

There are ~20 bug fixes in CI3's Form validation compared to CI2, some of them related to how arrays are treated. Have you considered that the behavior that you want may've been a side-effect of a bug?

I can only tell you one thing - 'foo[1]' (or any array notation field name with a specific numeric index) has never been considered as a possible use case.
Reply


Messages In This Thread
RE: Form Validation - set_value() working differently in v3 - by Narf - 05-03-2015, 10:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB