This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
hehe. indeed. But the sad news is that $this->poule_id
still isn't filled by the dropdown. :( It's just always 1 because of the filterFields method.
hehe. indeed. But the sad news is that $this->poule_id
still isn't filled by the dropdown. :( It's just always 1 because of the filterFields method.
Haha indeed! The bad part is that filterField method always kicks in and sets the value to 1. Meaning that it still doesn't react to the input. :/
Edit well great. I can't seem to get to the next page. Where are the next page buttons :')
Last updated
Cpt.Meatball said:
Haha indeed! The bad part is that filterField method always kicks in and sets the value to 1. Meaning that it still doesn't react to the input. :/
Edit well great. I can't seem to get to the next page. Where are the next page buttons :')
you have mistake somewhere in your model methods, check all variables - seems you forgot to change "Poule" to "PouleID" somewhere...
Ugh. I'm done for today haha. I've put it all on a public repo located here. Maybe you can find the mistake I made. I'll give you a cookie if you do! :D
Thanks so much for the help and I think you'll be hearing from me soon enough haha.
Cpt.Meatball said:
Ugh. I'm done for today haha. I've put it all on a public repo located here. Maybe you can find the mistake I made. I'll give you a cookie if you do! :D
Thanks so much for the help and I think you'll be hearing from me soon enough haha.
You need to check $this->poule_id
value not $this->pouleId
These are 2 different variables...
Cpt.Meatball said:
Yeah, already fixed it. Just didn't push it. Anyway, it's still broken haha.
https://github.com/CptMeatball/oc-matchmaking-plugin/blob/master/models/Match.php#L21-L26
You can't say "protect all of my fields" and "protect none of my fields" in same time... XD LOL
Fix that and all will work...
Last updated
Cpt.Meatball said:
Hahah, nope also doesn't work. All my models have this set up (don't know why though).
It works, register poule_id and other needed fields as fillable fields and see "the magic"...
And none of your models should say "allow all and allow nothing" in same time, you should read some documentation about guarded fields to understand them better...
Last updated
You, my sir, are a hero! Thought I understood the models/controller but it appears I do not. Thanks so much for all the help in the patience with my problems. :D <3
Cpt.Meatball said:
You, my sir, are a hero! Thought I understood the models/controller but it appears I do not. Thanks so much for all the help in the patience with my problems. :D <3
Always glad to help! :)
Where is my cookie, btw? XD :P
Last updated