This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Cpt.Meatball
Cpt.Meatball

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.

Cpt.Meatball
Cpt.Meatball

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.

Cpt.Meatball
Cpt.Meatball

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

raw99
raw99

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...

Cpt.Meatball
Cpt.Meatball

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.

raw99
raw99

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
Cpt.Meatball

Yeah, already fixed it. Just didn't push it. Anyway, it's still broken haha.

raw99
raw99

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
Cpt.Meatball

Hahah, nope also doesn't work. All my models have this set up (don't know why though).

raw99
raw99

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

Cpt.Meatball
Cpt.Meatball

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

raw99
raw99

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

Cpt.Meatball
Cpt.Meatball

Last updated

21-33 of 33

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.